Get started with Remix on Fastly Compute with a starter kit.
For more details about other starter kits for Fastly Compute, see the Fastly developer hub
Prerequisites:
- Node >= 16.13
You will be running two processes during development:
- The Remix development server in
watchmode - The Fastly development server
Both are started with one command:
npm run devOpen up http://127.0.0.1:7676 and you should be ready to go!
Changes made to files in app/ will cause the Remix application to rebuild and then trigger a live reload.
The live refresh occurs automatically 5000ms after the rebuild. If this delay is too short, you can
configure this using the devServerBroadcastDelay value in remix.config.js and then restart npm run dev.
If you want to check the production build, you can stop the dev server and run following commands:
npm run build
npm startThen refresh the same URL in your browser (no live reload for production builds).
If you don't already have an account, then create a Fastly Compute account here.
Once that's done, you should be able to deploy your app:
npm run build
npm run deployPlease see our SECURITY.md for guidance on reporting security-related issues.