Skip to content

Commit bd2f0b6

Browse files
committed
Use the Nuxt build in production
1 parent 62f1b10 commit bd2f0b6

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: deploy
22
on: workflow_dispatch
33
env:
4-
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5-
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
4+
NODE_OPTIONS: --max-old-space-size=4096
65
NUXT_PUBLIC_CDN_URL: ${{ secrets.VITE_APP_CDN_URL }}
76
NUXT_PUBLIC_DISCORD_INVITE_LINK: ${{ secrets.VITE_DISCORD_INVITE_LINK }}
87
NUXT_PUBLIC_FATHOM_EVENT_ACCOUNT_REGISTRATION: ${{ secrets.VUE_APP_FATHOM_GOAL_ACCOUNT_REGISTRATION }}
@@ -25,6 +24,8 @@ env:
2524
NUXT_PUBLIC_FIREBASE_PROJECT_ID: ${{ secrets.VUE_APP_FIREBASE_PROJECT_ID }}
2625
NUXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{ secrets.VUE_APP_FIREBASE_STORAGE_BUCKET }}
2726
NUXT_PUBLIC_STRIPE_MONTHLY_PRICE: ${{ secrets.VUE_APP_STRIPE_MONTHLY_PRICE }}
27+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
28+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
2829
jobs:
2930
deploy_vercel:
3031
runs-on: ubuntu-latest

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55
"private": true,
66
"type": "module",
77
"scripts": {
8-
"build": "nuxt prepare && vue-tsc --noEmit && yarn build:unsafe",
9-
"build:unsafe": "vite -c vite.base-config.ts build",
10-
"dev": "vite -c vite.base-config.ts --port 8888",
11-
"nuxt:build": "nuxt generate",
12-
"nuxt:dev": "nuxt dev",
13-
"nuxt:preview": "nuxt preview",
14-
"preview": "yarn build && yarn preview:latest",
15-
"preview:latest": "vite -c vite.base-config.ts preview --port 8889"
8+
"build": "nuxt prepare && nuxt typecheck && nuxt generate",
9+
"dev": "nuxt dev --port 8888",
10+
"legacy:build": "nuxt prepare && vue-tsc --noEmit && vite -c vite.base-config.ts build",
11+
"legacy:dev": "vite -c vite.base-config.ts --port 8888",
12+
"legacy:preview": "yarn build && vite -c vite.base-config.ts preview --port 8889",
13+
"preview": "nuxt preview"
1614
},
1715
"dependencies": {
1816
"@mermaid-js/mermaid-mindmap": "^9.2.2",

0 commit comments

Comments
 (0)