-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn on
v3_lazyRouteDiscovery
flag (#2702)
- Loading branch information
1 parent
38e98bb
commit ed625de
Showing
6 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
'skeleton': patch | ||
'@shopify/cli-hydrogen': patch | ||
--- | ||
|
||
Turn on future flag `v3_lazyRouteDiscovery` | ||
|
||
In your vite.config.ts, add the following line: | ||
|
||
```diff | ||
export default defineConfig({ | ||
plugins: [ | ||
hydrogen(), | ||
oxygen(), | ||
remix({ | ||
presets: [hydrogen.preset()], | ||
future: { | ||
v3_fetcherPersist: true, | ||
v3_relativeSplatPath: true, | ||
v3_throwAbortReason: true, | ||
+ v3_lazyRouteDiscovery: true, | ||
}, | ||
}), | ||
tsconfigPaths(), | ||
], | ||
``` | ||
|
||
Test your app by running `npm run dev` and nothing should break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters