tutorialkit icon indicating copy to clipboard operation
tutorialkit copied to clipboard

Add hosting config file(s) to project scaffolding

Open sulco opened this issue 1 year ago • 1 comments

Is your feature request related to a problem?

Because of CORS headers, deploying TutorialKit requires additional settings for each hosting provider.

Although we document that in https://tutorialkit.dev/guides/deployment/, not everyone reads the manual;) and I've heard feedback from users who'd tripped over the deployment story because of that.

Describe the solution you'd like.

With configuration files dedicated to the most common hosting providers, we can remove friction from deploying a tutorial project, so that aspects like setting up the build command or or headers is automatically taken care of.

Additionally, having this as a step in the wizard will highlight to a user the deployment capability itself.

Describe alternatives you've considered.

We could configure all the "usual suspects" automatically, but making it an additional step in the wizard might be a better option as it will reduce the unnecessary files generated.

Additional context

We can start with Vercel, Netlify and Cloudflare Pages to cover the range we have in our docs: https://tutorialkit.dev/guides/deployment/

sulco avatar Aug 09 '24 14:08 sulco

If we could detect when these CORS errors happen, maybe we should show huge error modal on the UI?

AriPerkkio avatar Aug 09 '24 15:08 AriPerkkio

Fixed by https://github.com/stackblitz/tutorialkit/pull/440.

AriPerkkio avatar Mar 31 '25 08:03 AriPerkkio