Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (18 loc) · 1.35 KB

RECIPE.md

File metadata and controls

22 lines (18 loc) · 1.35 KB

Remix + Fastly Recipe

https://www.fastly.com/blog/host-your-remix-app-on-fastly-compute-edge

Install the Fastly CLI

  1. On Linux, run dpkg --print-architecture to find your architecture. We got amd64.
  2. Visit the Fastly releases page to download the correct *.deb file.
  3. Right-click "Copy link address" from the browser and run wget https://github.com/fastly/cli/releases/download/v10.2.4/fastly_10.2.4_linux_amd64.deb
  4. apt install ./fastly_10.2.4_linux_amd64.deb
  5. fastly version to confirm installation

Install Remix

  1. npx create-remix@latest ./my-app --template https://github.com/fastly/remix-compute-js/tree/main/packages/remix-template
  2. Run dev server: npm run dev
  3. Build and run production server: npm run build && npm run start

Deploy to Fastly

  1. Generate a Fastly API token: Fastly CLI usage
  2. Navigate to Account > API tokens
  3. Create a user token with Global API access.
  4. Create a Fastly CLI profile: fastly profile create
  5. Build and deploy to Fastly: npm run build && npm run deploy. You can accept all of the CLI's defaults.