Skip to content

Deploy as a part of already existing website #243

Answered by Nemikolh
tadjik1 asked this question in Q&A
Discussion options

You must be logged in to vote

It is! 😃

You can deploy it under a sub path so that you serve your tutorial at https://example.com/subpath.

To do so you need to modify your astro config like this:

export default defineConfig({
  base: '/subpath' 
  //... 
}) 

To learn more you can check https://docs.astro.build/en/reference/configuration-reference/#base

You will also have to make sure to serve the assets under that sub path with the correct COOP COEP headers. See https://tutorialkit.dev/guides/deployment/#headers-configuration to learn more.

If you have any other questions, let us know!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tadjik1
Comment options

Answer selected by tadjik1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants