Skip to content

Commit

Permalink
fix(siwt.xyz): static output settings (#58)
Browse files Browse the repository at this point in the history
* Update static output settings to next 14
--------------------------------------------
Signed-off-by: Roy Scheeren <[email protected]>
  • Loading branch information
royscheeren authored May 15, 2024
1 parent 9590432 commit 0bf7972
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 22 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
aws-region: 'eu-central-1'
- run: npx nx run-many --target=build --parallel=3 --exclude=acq,core,discord,discord-bot-ui,react,sdk,docs.siwt.xyz,siwt.xyz-e2e,smart-contracts --skip-nx-cache
- run: npx nx run-many --target=build-server --parallel=3 --exclude=acq,core,discord,discord-bot-ui,react,sdk,docs.siwt.xyz,siwt.xyz-e2e,smart-contracts --skip-nx-cache
- run: npx nx run-many --target=export --exclude=acq,core,discord,discord-bot-ui,react,sdk,docs.siwt.xyz,siwt.xyz-e2e,smart-contracts --skip-nx-cache

- name: Setup staging env file
if: github.ref == 'refs/heads/develop'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Thumbs.db

# Next.js
.next
out

# Docusaurus
.docusaurus
Expand Down
23 changes: 23 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,28 @@
}
}
},
"plugins": [
{
"plugin": "@nx/next/plugin",
"options": {
"startTargetName": "start",
"buildTargetName": "build",
"devTargetName": "dev",
"serveStaticTargetName": "serve-static"
}
},
{
"plugin": "@nx/jest/plugin",
"options": {
"targetName": "test"
}
},
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint"
}
}
],
"neverConnectToCloud": true
}
1 change: 0 additions & 1 deletion packages/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"allowJs": false,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"types": ["vite/client"]
},
"files": [],
Expand Down
2 changes: 2 additions & 0 deletions packages/siwt.xyz/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const { withNx } = require('@nx/next/plugins/with-nx')
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
output: 'export',
distDir: '../../dist/packages/siwt.xyz',
nx: {
// Set this to true if you would like to to use SVGR
// See: https://github.com/gregberge/svgr
Expand Down
20 changes: 0 additions & 20 deletions packages/siwt.xyz/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
"sourceRoot": "packages/siwt.xyz",
"projectType": "application",
"targets": {
"build": {
"executor": "@nx/next:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/packages/siwt.xyz"
},
"configurations": {
"development": {
"outputPath": "packages/siwt.xyz"
},
"production": {}
}
},
"build-server": {
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
Expand Down Expand Up @@ -56,12 +42,6 @@
}
}
},
"export": {
"executor": "@nx/next:export",
"options": {
"buildTarget": "siwt.xyz:build:production"
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
Expand Down

0 comments on commit 0bf7972

Please sign in to comment.