diff --git a/netlify.toml b/netlify.toml index 8949e1f..00a596e 100644 --- a/netlify.toml +++ b/netlify.toml @@ -18,12 +18,8 @@ to = "/.netlify/functions/api/:splat" status = 200 -[[redirects]] - from = "/*" - to = "/404.html" - status = 404 - [[redirects]] from = "/*" to = "/index.html" status = 200 + force = true diff --git a/package.json b/package.json index b9a8be0..4b3d8ab 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "tinacms dev -c \"next dev\"", - "build": "tinacms build && next build && cp -r netlify/functions . && cp public/_redirects out/", + "build": "tinacms build && next build && cp -r netlify/functions . && cp public/_redirects out/ && cp -r .tina out/", "start": "next start", "test": "jest", "test:watch": "jest --watch"