Skip to content

Commit 104d441

Browse files
authored
chore: update remix example (#8090)
* chore: update remix example * add missing dev dependency * fix process env
1 parent 56d0e73 commit 104d441

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

examples/remix/app/root.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function App() {
2828
<Links />
2929
</head>
3030
<body>
31-
<Provider
31+
<Provider
3232
theme={defaultTheme}
3333
locale="en"
3434
router={{
@@ -38,6 +38,12 @@ export default function App() {
3838
<Outlet />
3939
</Provider>
4040
<ScrollRestoration />
41+
{/* https://remix.run/docs/en/main/guides/envvars */}
42+
<script
43+
dangerouslySetInnerHTML={{
44+
__html: `window.process = {}; window.process.env = {};`,
45+
}}
46+
/>
4147
<Scripts />
4248
<LiveReload />
4349
</body>

examples/remix/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"react-dom": "^18.2.0"
2020
},
2121
"devDependencies": {
22+
"@react-aria/optimize-locales-plugin": "^1.1.4",
2223
"@remix-run/dev": "^2.3.1",
2324
"@remix-run/eslint-config": "^2.3.1",
2425
"@types/react": "^18",

examples/remix/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { unstable_vitePlugin as remix } from "@remix-run/dev";
1+
import { vitePlugin as remix } from "@remix-run/dev";
22
import { defineConfig } from "vite";
33
import tsconfigPaths from "vite-tsconfig-paths";
44
import optimizeLocales from '@react-aria/optimize-locales-plugin';

0 commit comments

Comments
 (0)