mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-16 23:03:06 +00:00
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:
1 parent
ec62ee8f60
commit
41355f3da3
4 files changed
+14
No files matched your search
@@ -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/
|
||||
@@ -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
|
||||
Reference in new issue
Block a user