Change output directory
This commit is contained in:
parent
e253251b30
commit
83f3becf2b
2
.github/workflows/build-and-deploy.yml
vendored
2
.github/workflows/build-and-deploy.yml
vendored
@ -16,9 +16,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm ci --prefix processing
|
npm ci --prefix processing
|
||||||
node processing
|
node processing
|
||||||
|
|
||||||
npm ci --prefix site
|
npm ci --prefix site
|
||||||
npm run build --prefix site
|
|
||||||
npm run deploy --prefix site
|
npm run deploy --prefix site
|
||||||
|
|
||||||
- name: Generate App List # Have to run it again because the deploy wipes the file and folders out
|
- name: Generate App List # Have to run it again because the deploy wipes the file and folders out
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
# build output
|
# build output
|
||||||
dist
|
dist
|
||||||
|
public
|
||||||
.next
|
.next
|
||||||
target
|
target
|
||||||
packages/next/wasm/@next
|
packages/next/wasm/@next
|
||||||
|
@ -3,7 +3,7 @@ const glob = require("glob");
|
|||||||
const { hashElement } = require("folder-hash");
|
const { hashElement } = require("folder-hash");
|
||||||
const nextConfig = require("../site/next.config.js")
|
const nextConfig = require("../site/next.config.js")
|
||||||
|
|
||||||
var dir = "./site/out";
|
var dir = "./public";
|
||||||
|
|
||||||
if (!fs.existsSync(dir)) {
|
if (!fs.existsSync(dir)) {
|
||||||
fs.mkdirSync(dir);
|
fs.mkdirSync(dir);
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build && next export",
|
"build": "next build && next export -o ../public/",
|
||||||
"deploy": "next build && touch out/.nojekyll",
|
"deploy": "next build && next export -o ../public/ && touch ../public/.nojekyll",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user