Skip to content

Commit

Permalink
adds v3 future flags
Browse files Browse the repository at this point in the history
  • Loading branch information
cammiida committed Dec 15, 2024
1 parent 56d059e commit 4b062be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { LinksFunction, MetaFunction } from "@remix-run/node";
import { json } from "@remix-run/node";
import {
Links,
Meta,
Expand All @@ -22,7 +21,7 @@ export const meta: MetaFunction = () => [
export const loader: LoaderFunction = async ({ request }) => {
const user = await authenticator.isAuthenticated(request);

return json({ user });
return { user };
};

export default function App() {
Expand Down
11 changes: 10 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ installGlobals();

export default defineConfig({
plugins: [
remix({ ignoredRouteFiles: ["**/.*"] }),
remix({
ignoredRouteFiles: ["**/.*"],
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
v3_singleFetch: true,
v3_lazyRouteDiscovery: true,
},
}),
netlifyPlugin(),
tsconfigPaths(),
],
Expand Down

0 comments on commit 4b062be

Please sign in to comment.