netlify / remix-template

Deploy your Remix site to Netlify
83 stars 27 forks source link

chore: added dev command for Netlify Functions template #94

Closed nickytonline closed 1 year ago

nickytonline commented 1 year ago

Description

Fixes the development flow for Netlify Functions templated projects.

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

  1. Pull this branch down, e.g. via the GitHub CLI, gh co 94
  2. From the root of the project in a shell, run npx create-remix --template ./
  3. The Remix CLI will prompt you where you want to create the application. Put it anywhere outside of the project.

? Where would you like to create your app? (./my-remix-app)

  1. The Remix CLI will prompt you to choose TypeScript or JavaScript, it doesn't matter which one you pick.
? TypeScript or JavaScript? (Use arrow keys)
❯ TypeScript 
  JavaScript
  1. You'll be prompted to install dependencies. Type y and press the ENTER key.

? Do you want me to runnpm install? (Y/n)

  1. The Remix CLI starts installing things
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead

added 939 packages, and audited 940 packages in 36s

235 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
  1. The Remix CLI starts the remix.init script. When prompted, select ❯ Netlify Functions - Choose this for stable support for production sites with the arrow keys and press the ENTER key.
πŸ’Ώ Running remix.init script
? Run your Remix site with: (Use arrow keys)
❯ Netlify Functions - Choose this for stable support for production sites 
  Netlify Edge Functions (beta) - Try this for improved performance on less critical sites
  1. Change to the root directory of the project and run ntl dev. The local server starts.
➜ ntl dev     
β—ˆ Netlify Dev β—ˆ
β—ˆ Ignored general context env var: LANG (defined in process)
β—ˆ Setting up local development server

β—ˆ Static server listening to 3999
β—ˆ Loaded function server http://localhost:3000/.netlify/functions/server.
β—ˆ Functions server is listening on 53468

   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚                                                 β”‚
   β”‚   β—ˆ Server now ready on http://localhost:3000   β”‚
   β”‚                                                 β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Watching Remix app in development mode...
πŸ’Ώ Built in 188ms
β—ˆ Rewrote URL to /.netlify/functions/server
Request from ::1: GET /.netlify/functions/server
This is an example of how to set caching headers for a route, feel free to change the value of 60 seconds or remove the header
Response with status 200 in 57 ms.
β—ˆ Reloading function server...
β—ˆ Reloaded function server

CleanShot 2023-02-25 at 09 34 03

For us to review and ship your PR efficiently, please perform the following steps:

A picture of a cute animal (not mandatory, but encouraged)

A hamster with full cheeks running

netlify[bot] commented 1 year ago

Deploy Preview for remix-edge-on ready!

Name Link
Latest commit 10d9cf966ed25277152f651e18cbab222c14b0bb
Latest deploy log https://app.netlify.com/sites/remix-edge-on/deploys/63fa1afb6a683a0008aed242
Deploy Preview https://deploy-preview-94--remix-edge-on.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

nickytonline commented 1 year ago

Closing in favour of #95