Skip to content

Commit 36e489c

Browse files
authored
Update migrate-from-next-js.md (#5533)
1 parent 4693e0e commit 36e489c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/start/framework/react/migrate-from-next-js.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ import {
129129
HeadContent,
130130
Scripts,
131131
} from "@tanstack/react-router"
132-
import "./globals.css"
132+
import appCss from "./globals.css?url"
133133

134134
- export const metadata: Metadata = { // [!code --]
135135
- title: "Create Next App", // [!code --]
@@ -145,6 +145,12 @@ export const Route = createRootRoute({
145145
},
146146
{ title: "TanStack Start Starter" }
147147
],
148+
links: [
149+
{
150+
rel: 'stylesheet',
151+
href: appCss,
152+
},
153+
],
148154
}),
149155
component: RootLayout,
150156
})

0 commit comments

Comments
 (0)