You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to how the site configuration is handled when it's run using Netlify Edge Functions, data such as `locale` and `defaultLocale` will be missing on the `req.nextUrl` object when running `netlify dev`.
73
+
Due to how the site configuration is handled when it's run using Netlify Edge Functions, data such as `locale` and
74
+
`defaultLocale` will be missing on the `req.nextUrl` object when running `netlify dev`.
64
75
65
76
However, this data is available on `req.nextUrl` in a production environment.
66
77
@@ -112,8 +123,9 @@ following ways:
112
123
113
124
### From the UI (Recommended):
114
125
115
-
You can go to the [UI](https://app.netlify.com/plugins/@netlify/plugin-nextjs/install) and choose the site to install the Next.js Runtime on. This method
116
-
is recommended because you will benefit from auto-upgrades to important fixes and feature updates.
126
+
You can go to the [UI](https://app.netlify.com/plugins/@netlify/plugin-nextjs/install) and choose the site to install
127
+
the Next.js Runtime on. This method is recommended because you will benefit from auto-upgrades to important fixes and
128
+
feature updates.
117
129
118
130
### From `npm`:
119
131
@@ -139,18 +151,20 @@ If you previously set these values, they're no longer needed and should be remov
139
151
- `external_node_modules` in `netlify.toml`
140
152
- The environment variable `NEXT_USE_NETLIFY_EDGE` can be removed as this is now the default
141
153
142
-
The `serverless` and `experimental-serverless-trace` targets are deprecated in Next.js 12, and all builds with this Next.js
143
-
Runtime will now use the default `server` target. If you previously set the target in your `next.config.js`, you should
144
-
remove it.
154
+
The `serverless` and `experimental-serverless-trace` targets are deprecated in Next.js 12, and all builds with this
155
+
Next.js Runtime will now use the default `server` target. If you previously set the target in your `next.config.js`, you
156
+
should remove it.
145
157
146
158
If you currently use redirects or rewrites on your site, see
147
159
[the Rewrites and Redirects guide](https://docs.netlify.com/integrations/frameworks/next-js/redirects-and-rewrites/) for
148
160
information on changes to how they are handled in this version. In particular, note that `_redirects` and `_headers`
149
161
files must be placed in `public`, not in the root of the site.
150
162
151
163
## Using with pnpm
152
-
If your site uses pnpm to manage dependencies, currently you must [enable public hoisting](https://pnpm.io/npmrc#public-hoist-pattern).
153
-
The simplest way to do this is to create a `.npmrc` file in the root of your project with the content:
164
+
165
+
If your site uses pnpm to manage dependencies, currently you must
166
+
[enable public hoisting](https://pnpm.io/npmrc#public-hoist-pattern). The simplest way to do this is to create a
167
+
`.npmrc` file in the root of your project with the content:
0 commit comments