Skip to content

[Bug]: _redirects entry not included in .next #1008

Closed
@itsnotrisky

Description

@itsnotrisky

Steps to reproduce

  1. Change plugin version to v4 from "Plugin" menu and selecting Options dropdown.
  2. Change "Publish directory" to .next from "Site settings".
  3. Retry deploy from Builds menu.

A link to a reproduction repository

No response

Plugin version

4.0.0

More information about your build

  • I am building using the CLI
  • I am building using file-based configuration (netlify.toml)

What OS are you using?

No response

Your netlify.toml file

`netlify.toml`
# Paste content of your `netlify.toml` file here

Relevant log output (or link to your logs)

Outdated plugin notification from first build
1:14:58 PM: ❯ Outdated plugins
1:14:58 PM:    - @netlify/[email protected]: latest version is 4.0.0
1:14:58 PM:      Migration guide: https://ntl.fyi/next-plugin-migration
1:14:58 PM:      To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)
Build logs with v4
1:25:22 PM: ────────────────────────────────────────────────────────────────
1:25:22 PM:   3. @netlify/plugin-nextjs (onBuild event)                     
1:25:22 PM: ────────────────────────────────────────────────────────────────
1:25:22 PM: ​
1:25:22 PM: Moving static page files to serve from CDN...
1:25:22 PM: Moved 7 files
1:25:22 PM: Netlify configuration property "redirects" value changed to [
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/image*',
1:25:22 PM:     query: { url: ':url', w: ':width', q: ':quality' },
1:25:22 PM:     to: '/_ipx/w_:width,q_:quality/:url',
1:25:22 PM:     status: 301
1:25:22 PM:   },
1:25:22 PM:   { from: '/_ipx/*', to: '/.netlify/builders/_ipx', status: 200 },
1:25:22 PM:   { from: '/cache/*', to: '/404.html', status: 404, force: true },
1:25:22 PM:   { from: '/server/*', to: '/404.html', status: 404, force: true },
1:25:22 PM:   { from: '/serverless/*', to: '/404.html', status: 404, force: true },
1:25:22 PM:   { from: '/traces', to: '/404.html', status: 404, force: true },
1:25:22 PM:   {
1:25:22 PM:     from: '/routes-manifest.json',
1:25:22 PM:     to: '/404.html',
1:25:22 PM:     status: 404,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/build-manifest.json',
1:25:22 PM:     to: '/404.html',
1:25:22 PM:     status: 404,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/prerender-manifest.json',
1:25:22 PM:     to: '/404.html',
1:25:22 PM:     status: 404,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/react-loadable-manifest.json',
1:25:22 PM:     to: '/404.html',
1:25:22 PM:     status: 404,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   { from: '/BUILD_ID', to: '/404.html', status: 404, force: true },
1:25:22 PM:   { from: '/_next/static/*', to: '/static/:splat', status: 200 },
1:25:22 PM:   {
1:25:22 PM:     from: '/api',
1:25:22 PM:     to: '/.netlify/functions/___netlify-handler',
1:25:22 PM:     status: 200
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/api/*',
1:25:22 PM:     to: '/.netlify/functions/___netlify-handler',
1:25:22 PM:     status: 200
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/favicon.ico',
1:25:22 PM:     to: '/favicon.ico',
1:25:22 PM:     conditions: { Cookie: [Array] },
1:25:22 PM:     status: 200
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/pozible-brand-horizontal-color.png',
1:25:22 PM:     to: '/pozible-brand-horizontal-color.png',
1:25:22 PM:     conditions: { Cookie: [Array] },
1:25:22 PM:     status: 200
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/vercel.svg',
1:25:22 PM:     to: '/vercel.svg',
1:25:22 PM:     conditions: { Cookie: [Array] },
1:25:22 PM:     status: 200
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/*',
1:25:22 PM:     to: '/.netlify/functions/___netlify-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     conditions: { Cookie: [Array] },
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/nike-shoe-0c663c14.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/nike-shoe-0c663c14',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/mel-map.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/mel-map',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/wgac-forest-bundle.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/wgac-forest-bundle',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/sobah-non-alcoholic-craft-beer-0b6122b0.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/sobah-non-alcoholic-craft-beer-0b6122b0',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/swiftcrest-gin.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/swiftcrest-gin',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/bubble-tea-reusable-cup-06779215.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/bubble-tea-reusable-cup-06779215',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/clothes-peg-stainless-steel-marine-grade-24-pack-087bae69.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/clothes-peg-stainless-steel-marine-grade-24-pack-087bae69',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/luciana-oversized-silk-scrunchie-0ee96a14.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/luciana-oversized-silk-scrunchie-0ee96a14',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/halfcut-coconut-bowl-4-pack-a28a9b35.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/halfcut-coconut-bowl-4-pack-a28a9b35',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/8oz-huskee-coffee-cup-lid-4-pack---natural-colour-c6622038.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/8oz-huskee-coffee-cup-lid-4-pack---natural-colour-c6622038',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/spacewhite-eco-essentials-9c926c27.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/spacewhite-eco-essentials-9c926c27',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/nike-shoe-41598997.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/nike-shoe-41598997',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/bubble-tea-reusable-cup-gf.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/bubble-tea-reusable-cup-gf',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/aethera-silk-scrunchie.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/aethera-silk-scrunchie',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/huskee-4pack-8oz-gf.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/huskee-4pack-8oz-gf',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/wgac-bamboo-bundle-gf.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/wgac-bamboo-bundle-gf',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/clothes-peg-stainless-steel-mg-gf.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/clothes-peg-stainless-steel-mg-gf',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/halfcut-coconut-bowl-4-pack-gf.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/halfcut-coconut-bowl-4-pack-gf',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/sobah-brew.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/sobah-brew',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/mel-map-colour-print-gf.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/mel-map-colour-print-gf',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/swiftcrest-gin.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/swiftcrest-gin',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/spacewhite-eco-essentials-42209014.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/spacewhite-eco-essentials-42209014',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/melmap-poz-offer.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/melmap-poz-offer',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200,
1:25:22 PM:     force: true
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/products/:slug.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/_next/data/6w6CoOxpQmptnfR-I4A34/offers/:slug.json',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/products/:slug',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/offers/:slug',
1:25:22 PM:     to: '/.netlify/builders/___netlify-odb-handler',
1:25:22 PM:     status: 200
1:25:22 PM:   },
1:25:22 PM:   {
1:25:22 PM:     from: '/*',
1:25:22 PM:     to: '/.netlify/functions/___netlify-handler',
1:25:22 PM:     status: 200
1:25:22 PM:   }
1:25:22 PM: ].
1:25:23 PM: ​
1:25:23 PM: (@netlify/plugin-nextjs onBuild completed in 137ms)

...

1:28:47 PM: ────────────────────────────────────────────────────────────────
1:28:47 PM:   6. Deploy site                                                
1:28:47 PM: ────────────────────────────────────────────────────────────────
1:28:47 PM: ​
1:28:47 PM: Starting to deploy site from '.next'
1:28:48 PM: Creating deploy tree 
1:28:49 PM: Creating deploy upload records
1:28:49 PM: 141 new files to upload
1:28:49 PM: 3 new functions to upload
1:29:01 PM: Site deploy was successfully initiated
1:29:01 PM: ​
1:29:01 PM: (Deploy site completed in 14.4s)
1:29:01 PM: ​
1:29:01 PM: A "_redirects" file is present in the repository but is missing in the publish directory ".next".
1:29:02 PM: ​
1:29:02 PM: ────────────────────────────────────────────────────────────────
1:29:02 PM:   Netlify Build Complete                                        
1:29:02 PM: ────────────────────────────────────────────────────────────────
1:29:02 PM: ​
1:29:02 PM: (Netlify Build completed in 6m 51.4s)

Metadata

Metadata

Assignees

Labels

type: bugcode to address defects in shipped code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions