Skip to content

Commit

Permalink
Change output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hunt committed Jan 10, 2023
1 parent e253251 commit 83f3bec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# build output
dist
public
.next
target
packages/next/wasm/@next
Expand Down
2 changes: 1 addition & 1 deletion processing/processjson.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 83f3bec

Please sign in to comment.