From 13b1656068fac753a810a6994effddd130ffe766 Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Mon, 26 Feb 2024 16:47:15 -0500 Subject: [PATCH 1/6] text nuxt build with prerendering --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 327315a..4b16d1e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@directus/website", "private": true, "scripts": { - "build": "nuxt generate", + "build": "nuxt build", "dev": "nuxt dev", "postinstall": "nuxt prepare", "typecheck": "nuxt typecheck", From 019e9888cc5e2d3e17b71a72e4eb50ccf6ed7798 Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Mon, 26 Feb 2024 16:51:18 -0500 Subject: [PATCH 2/6] Add comment for deployment testing --- nuxt.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index ebf9de6..c1430e1 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,5 +1,7 @@ export default defineNuxtConfig({ telemetry: false, + + // Adding comment to test the deployment ssr: true, css: ['~/assets/css/main.css'], From 53652fcc089a060fb3e76c00aa55b6cfb934608d Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Mon, 26 Feb 2024 17:21:30 -0500 Subject: [PATCH 3/6] Add nitro preset for Netlify Edge --- nuxt.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index c1430e1..17468a2 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -3,6 +3,9 @@ export default defineNuxtConfig({ // Adding comment to test the deployment ssr: true, + nitro: { + preset: 'netlify-edge', + }, css: ['~/assets/css/main.css'], From 1b65a6076a14fa147b2737481c8b9bd7ce44f4c2 Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Mon, 26 Feb 2024 17:23:36 -0500 Subject: [PATCH 4/6] can't have two configs - duh --- nuxt.config.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 17468a2..d042981 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -3,9 +3,6 @@ export default defineNuxtConfig({ // Adding comment to test the deployment ssr: true, - nitro: { - preset: 'netlify-edge', - }, css: ['~/assets/css/main.css'], @@ -47,6 +44,7 @@ export default defineNuxtConfig({ }, nitro: { + preset: 'netlify-edge', prerender: { crawlLinks: false, concurrency: 3, From 663fa2d20b3cedf534cd22296d26c95a32bb1d69 Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Mon, 26 Feb 2024 17:59:33 -0500 Subject: [PATCH 5/6] Remove nitro preset from nuxt.config.ts --- nuxt.config.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index d042981..c1430e1 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -44,7 +44,6 @@ export default defineNuxtConfig({ }, nitro: { - preset: 'netlify-edge', prerender: { crawlLinks: false, concurrency: 3, From c4cd027a49dc5f07e2e74619975cd042632c18d6 Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Mon, 26 Feb 2024 18:09:51 -0500 Subject: [PATCH 6/6] Remove commen --- nuxt.config.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index c1430e1..1c80513 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,7 +1,6 @@ export default defineNuxtConfig({ telemetry: false, - // Adding comment to test the deployment ssr: true, css: ['~/assets/css/main.css'],