Skip to content

chore: rename middleware.ts to proxy.ts#12

Open
iot-rocket wants to merge 1 commit into
sbabic:mainfrom
iot-device-suite:fix/nextjs16-proxy-convention
Open

chore: rename middleware.ts to proxy.ts#12
iot-rocket wants to merge 1 commit into
sbabic:mainfrom
iot-device-suite:fix/nextjs16-proxy-convention

Conversation

@iot-rocket
Copy link
Copy Markdown

Next.js 16 deprecated the middleware file convention in favor of proxy. Rename src/middleware.ts to src/proxy.ts to silence the build warning. No content change needed — the file uses export default and export const config, both of which work identically under the proxy convention.

See: https://nextjs.org/docs/messages/middleware-to-proxy

Next.js 16 deprecated the `middleware` file convention in favor of
`proxy`. Rename `src/middleware.ts` to `src/proxy.ts` to silence the
build warning. No content change needed — the file uses `export default`
and `export const config`, both of which work identically under the
proxy convention.

See: https://nextjs.org/docs/messages/middleware-to-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant