1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-06-15 00:30:40 +02:00

support preview env

This commit is contained in:
Kushagra Gour
2024-03-22 03:40:32 +05:30
parent 578dc88a09
commit 16e20af078

View File

@ -18,14 +18,18 @@ ID = "webmaker"
# been specified, include it in the publish directory path. # been specified, include it in the publish directory path.
publish = "dist" publish = "dist"
# The following redirect is intended for use with most SPAs that handle
# routing internally.
[[redirects]] [[redirects]]
from = "https://preview.webmaker.app/*" from = "https://preview.webmaker.app/*"
to = "/create/preview/:splat" to = "/create/preview/:splat"
status = 200 status = 200
force = true force = true
[[redirects]]
from = "https://preview.v6--webmaker.netlify.app/*"
to = "/create/preview/:splat"
status = 200
force = true
[[redirects]] [[redirects]]
from = "/create/*" from = "/create/*"
to = "/create/index.html" to = "/create/index.html"