diff --git a/build.sh b/build.sh index 7194123..34966b3 100755 --- a/build.sh +++ b/build.sh @@ -6,4 +6,5 @@ cd docs composer install npm install npm run production + mkdir -p ../dist/docs cp -R build_production/* ../dist/docs \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index 4b96b82..4cda698 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,4 +5,5 @@ command = "./build.sh" [[redirects]] from = "/docs/master/*" -to = "/docs/2.x/:splat" \ No newline at end of file +to = "/docs/2.x/:splat" +status = 302 \ No newline at end of file