From f2e6d0b569e260934a62cddf6a9422c986fce6a7 Mon Sep 17 00:00:00 2001 From: "Ian J. MacIntosh" Date: Sun, 16 Mar 2025 21:36:01 -0400 Subject: [PATCH 1/2] Fix tutorial instruction Changed `npm start` -> `npm run dev` `npm start` throws an error since it isn't a defined run script I used the more verbose syntax to make it more obvious the user is calling a run script, not running an npm command named "dev" --- .../pages/tutorials/build-an-api-with-pages-functions/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/pages/tutorials/build-an-api-with-pages-functions/index.mdx b/src/content/docs/pages/tutorials/build-an-api-with-pages-functions/index.mdx index 0e26c748a87ea89..6cd2118516e2d38 100644 --- a/src/content/docs/pages/tutorials/build-an-api-with-pages-functions/index.mdx +++ b/src/content/docs/pages/tutorials/build-an-api-with-pages-functions/index.mdx @@ -35,7 +35,7 @@ In your terminal, create a new React project called `blog-frontend` using the `c ```sh title="Create a new React application" npx create-vite -t react blog-frontend cd blog-frontend -npm start +npm run dev ``` ### Set up your React project From 7eece825df488b44e9277d8da004e07d9706bf2c Mon Sep 17 00:00:00 2001 From: Kody Jackson Date: Mon, 17 Mar 2025 11:02:18 -0500 Subject: [PATCH 2/2] Update src/content/docs/pages/tutorials/build-an-api-with-pages-functions/index.mdx --- .../pages/tutorials/build-an-api-with-pages-functions/index.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/docs/pages/tutorials/build-an-api-with-pages-functions/index.mdx b/src/content/docs/pages/tutorials/build-an-api-with-pages-functions/index.mdx index 6cd2118516e2d38..8cdbbd39b61f0c6 100644 --- a/src/content/docs/pages/tutorials/build-an-api-with-pages-functions/index.mdx +++ b/src/content/docs/pages/tutorials/build-an-api-with-pages-functions/index.mdx @@ -35,6 +35,7 @@ In your terminal, create a new React project called `blog-frontend` using the `c ```sh title="Create a new React application" npx create-vite -t react blog-frontend cd blog-frontend +npm install npm run dev ```