maybe the netlify.toml has to live in the output dir

netlify.toml was being read for the build directive, but the redirect
directives are not behaving. maybe we have to copy the file?
This commit is contained in:
Brandon Thomas committed 2024-08-15 01:40:38 -04:00
1 parent ec62ee8f60
commit 41355f3da3
4 files changed
+14

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ mv src/website/packages/fakeyou.com/build/* fakeyou.com/website/
echo "Copying redirects configuration to Netlify build dir..."
cp src/netlify_configs/fakeyou.com/_redirects fakeyou.com/
cp src/netlify_configs/fakeyou.com/netlify.toml fakeyou.com/
echo "List files in build directory"
find fakeyou.com/
+1
View File
@@ -53,6 +53,7 @@ mv src/website/packages/fakeyou.com/build/* storyteller.ai/website/
echo "Copying redirects configuration to Netlify build dir..."
cp src/netlify_configs/storyteller.ai/_redirects storyteller.ai/
cp src/netlify_configs/storyteller.ai/netlify.toml storyteller.ai/
echo "List files in build directory"
find storyteller.ai/
@@ -30,3 +30,9 @@ from = "/asdf"
to = "https://fakeyou.com/about"
status = 301
force = true
[[redirects]]
from = "https://staging.fakeyou.com/doesitwork"
to = "https://fakeyou.com/about"
status = 301
force = true
@@ -30,3 +30,9 @@ from = "/asdf"
to = "https://storyteller.ai/about"
status = 301
force = true
[[redirects]]
from = "https://staging.storyteller.ai/doesitwork"
to = "https://storyteller.ai/about"
status = 301
force = true