chore: test build & deploy
This commit is contained in:
parent
d8ebf82849
commit
5acb24e679
3 changed files with 9 additions and 5 deletions
|
@ -9,11 +9,12 @@ environment:
|
||||||
NETLIFY_SITE_ID: 390b392a-a898-491b-8500-79aa30f724d6
|
NETLIFY_SITE_ID: 390b392a-a898-491b-8500-79aa30f724d6
|
||||||
tasks:
|
tasks:
|
||||||
- install-deps: |
|
- install-deps: |
|
||||||
cd mcfly/site
|
cd mcfly
|
||||||
pnpm i
|
pnpm -F site i
|
||||||
- build: |
|
- build: |
|
||||||
cd mcfly/site
|
cd mcfly
|
||||||
npm run build
|
pnpm -F site run build
|
||||||
|
ls
|
||||||
- deploy: |
|
- deploy: |
|
||||||
cd mcfly/site
|
cd mcfly/site
|
||||||
{
|
{
|
||||||
|
|
3
site/netlify.toml
Normal file
3
site/netlify.toml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[build]
|
||||||
|
publish = "dist"
|
||||||
|
command = "pnpm run build"
|
|
@ -22,7 +22,7 @@
|
||||||
"build": "mcfly build",
|
"build": "mcfly build",
|
||||||
"preview": "node .output/server/index.mjs",
|
"preview": "node .output/server/index.mjs",
|
||||||
"build:preview": "pnpm run build && pnpm run preview",
|
"build:preview": "pnpm run build && pnpm run preview",
|
||||||
"deploy": "netlify deploy --site=$NETLIFY_SITE_ID --dir=dist functions=server --prod"
|
"deploy": "netlify deploy --site=$NETLIFY_SITE_ID --dir=dist --prod"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mcflyjs/config": "workspace:*",
|
"@mcflyjs/config": "workspace:*",
|
||||||
|
|
Loading…
Reference in a new issue