Change output directory

This commit is contained in:
Chris Hunt 2023-01-10 13:40:27 +00:00
parent e253251b30
commit 83f3becf2b
4 changed files with 4 additions and 5 deletions

View File

@ -16,9 +16,7 @@ jobs:
run: |
npm ci --prefix processing
node processing
npm ci --prefix site
npm run build --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

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# build output
dist
public
.next
target
packages/next/wasm/@next

View File

@ -3,7 +3,7 @@ const glob = require("glob");
const { hashElement } = require("folder-hash");
const nextConfig = require("../site/next.config.js")
var dir = "./site/out";
var dir = "./public";
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);

View File

@ -3,8 +3,8 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build && next export",
"deploy": "next build && touch out/.nojekyll",
"build": "next build && next export -o ../public/",
"deploy": "next build && next export -o ../public/ && touch ../public/.nojekyll",
"start": "next start",
"lint": "next lint"
},