Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to ipfs #3237

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/cowswap-frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default defineConfig(({ mode }) => {
}

return {
base: './',
define: {
...getReactProcessEnv(mode),
},
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
},
"scripts": {
"start": "nx run cowswap-frontend:serve",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=32768 nx build cowswap-frontend",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we no longer need the --max-old-space setting, right @shoom3301 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to remove, but maybe I won't mix in this PR. I can create another one if required. Let me know!

"ipfs:build": "PUBLIC_URL=\".\" yarn build",
"ipfs:publish": "npx ipfs-deploy build -p pinata -O",
"preview": "cross-env NODE_OPTIONS=--max-old-space-size=32768 nx run cowswap-frontend:preview",
"cosmos:export": "cross-env NODE_OPTIONS=--max-old-space-size=32768 nx run cowswap-frontend:cosmos:export",
"cosmos": "nx run cowswap-frontend:cosmos:run",
"test": "nx run-many -t test --output-style=stream",
"e2e": "nx run-many -t e2e",
"lint": "nx run-many -t lint",
"prebuild": "nx run cowswap-frontend:i18n",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=32768 nx build cowswap-frontend",
"prepare": "husky install",
"postinstall": "yarn run patch-package",
"analyze-build": "cross-env ANALYZE_BUNDLE=true ANALYZE_BUNDLE_TEMPLATE=sunburst yarn build"
Expand Down
Loading