Skip to content

Commit

Permalink
fix: Copy static files to the dist while building (#253)
Browse files Browse the repository at this point in the history
fix: Add static files to the dist folder
  • Loading branch information
Andrew Nikitin committed Jun 9, 2023
1 parent 9550b60 commit 4f076c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ LOGTO_RESOURCE_URL='http://localhost:8787'
LOGTO_ENDPOINT='http://localhost:3001'
LOGTO_APP_ID='ldfsr...rq432'
LOGTO_APP_SECRET='sdf...sdf'
COOKIE_SECRET='sdf...sdf'

# Authentication
ENABLE_AUTHENTICATION="boolean,default:false"
Expand Down
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
}
},
"scripts": {
"copy-files": "copyfiles -u 1 src/static/**/*.js dist/src/static ",
"postbuild": "npm run copy-files",
"build": "tsc",
"start": "node dist/src/index.js",
"format": "prettier --write '*.{json,js}' 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'",
Expand Down Expand Up @@ -60,6 +62,7 @@
"@verida/client-ts": "^2.3.5",
"@verida/types": "^2.3.1",
"cookie-parser": "^1.4.6",
"copyfiles": "^2.4.1",
"cors": "^2.8.5",
"did-resolver": "^4.1.0",
"dotenv": "^16.1.3",
Expand Down

0 comments on commit 4f076c0

Please sign in to comment.