Skip to content

Commit

Permalink
core: test amplify
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoSM committed Nov 24, 2023
1 parent e02ad03 commit 3c27b33
Show file tree
Hide file tree
Showing 6 changed files with 2,839 additions and 718 deletions.
7 changes: 6 additions & 1 deletion apps/app/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const siteUrl = process.env.NUXT_PUBLIC_SITE_URL || "https://menthor.io/";
const baseURL = "/app/";

export default defineNuxtConfig({
experimental: {
payloadExtraction: true,
},
sourcemap: { server: true, client: false }, // Disable sourcemap errors
runtimeConfig: {
public: {
Expand All @@ -17,13 +20,15 @@ export default defineNuxtConfig({
},
},
routeRules: {
"/sign-in": { ssr: false },
"/": { prerender: true },
"/profile": { ssr: true },
},
nitro: {
preset: "cloudflare",
preset: "aws_amplify",
baseURL: process.env.NODE_ENV === "development" ? "/" : baseURL,
prerender: {
crawlLinks: true,
routes: ["/api/search.json"],
},
runtimeConfig: {
Expand Down
3 changes: 2 additions & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
"private": true,
"scripts": {
"build": "nuxt build",
"analyze": "nuxt analyze",
"dev": "nuxt dev -p 3001",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"@nuxt/content": "npm:@nuxt/content-edge@latest",
"@nuxt/content": "2.8.2",
"@nuxtjs/fontaine": "^0.2.5",
"@types/node": "^20.4.6",
"colorthief": "^2.4.0",
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"scripts": {
"dev": "dotenv -e .env.development -- turbo run dev --parallel --no-daemon",
"build": "dotenv -e .env.production -- turbo run build --no-daemon",
"analyze": "dotenv -e .env.production -- turbo run analyze --no-daemon",
"build:production": "dotenv -e .env.production -- turbo run build --no-daemon",
"build:development": "dotenv -e .env.development -- turbo run build --no-daemon",
"generate": "dotenv -e .env.production -- turbo run generate --no-daemon",
Expand All @@ -22,6 +23,9 @@
"path": "cz-conventional-changelog"
}
},
"resolutions": {
"globby": "13.2.2"
},
"name": "my-turborepo",
"packageManager": "pnpm@8.6.9"
}
Loading

0 comments on commit 3c27b33

Please sign in to comment.