Skip to content

Commit

Permalink
fix: not finding local assets (#1695)
Browse files Browse the repository at this point in the history
- Fixed not finding local assets
- Upgraded Vite to V6 major

![CleanShot 2024-12-10 at 03 01
38](https://github.com/user-attachments/assets/c08a0909-0e2f-47b6-bda4-474210188b9d)


![CleanShot 2024-12-10 at 03 01
19](https://github.com/user-attachments/assets/754cd910-c928-4d9b-a86b-132b40cb5ee6)
  • Loading branch information
arthurgeron authored Dec 10, 2024
1 parent 8b68c21 commit 8945456
Show file tree
Hide file tree
Showing 7 changed files with 1,423 additions and 457 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-kangaroos-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

Fixed setup page not finding some local assets
5 changes: 5 additions & 0 deletions .changeset/serious-kiwis-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

Upgrade Vite to V6 major
2 changes: 1 addition & 1 deletion examples/cra-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "4.2.1",
"typescript": "5.2.2",
"vite": "5.4.10"
"vite": "6.0.3"
}
}
6 changes: 3 additions & 3 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@
"ts-jest-mock-import-meta": "1.1.0",
"tsconfig-paths-webpack-plugin": "4.1.0",
"typescript": "5.2.2",
"vite": "5.4.10",
"vite": "6.0.3",
"vite-plugin-clean": "1.0.0",
"vite-plugin-static-copy": "0.17.0",
"vite-tsconfig-paths": "4.2.1",
"vite-plugin-static-copy": "2.2.0",
"vite-tsconfig-paths": "5.1.4",
"whatwg-fetch": "3.6.20"
},
"msw": {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/systems/Core/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const styles = {
bottom: 0,
width: '100%',
height: '100vh',
background: 'url(/signup.png?url)',
background: 'url(/signup.png)',
backgroundPosition: 'left',
backgroundSize: 'cover',
},
Expand Down
3 changes: 3 additions & 0 deletions packages/app/vite-utils/vite.base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const baseConfig: UserConfig = {
server: {
port: Number(process.env.PORT),
strictPort: true,
// proxy: {
// '/public': 'http://localhost:3000',
// }
watch: {
ignored: ['**/playwright*/**'], // Ignore changes in any 'playwright' folder
},
Expand Down
1,857 changes: 1,405 additions & 452 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 8945456

Please sign in to comment.