diff --git a/aio/scripts/deploy-to-firebase.sh b/aio/scripts/deploy-to-firebase.sh index b9e3d22449..0e95fc74c7 100755 --- a/aio/scripts/deploy-to-firebase.sh +++ b/aio/scripts/deploy-to-firebase.sh @@ -78,6 +78,9 @@ echo "Deployment URL : $deployedUrl" # Build the app yarn build -- --env=$deployEnv + # Include any mode-specific files + cp -rf src/extra-files/$deployEnv/. dist/ + # Check payload size yarn payload-size diff --git a/aio/src/extra-files/README.md b/aio/src/extra-files/README.md new file mode 100644 index 0000000000..2aad208a30 --- /dev/null +++ b/aio/src/extra-files/README.md @@ -0,0 +1,9 @@ +# Extra files folder + +This folder is used for extra files that should be included in deployments to firebase. + +After the AIO application had been built and before it is deployed all files and folders +inside the folder with the same name as the current deployment mode (next, stable, archive) +will be copied to the `dist` folder. + +See the `scripts/deploy-to-firebase.sh` script for more detail. \ No newline at end of file diff --git a/aio/src/extra-files/archive/robots.txt b/aio/src/extra-files/archive/robots.txt new file mode 100644 index 0000000000..77470cb39f --- /dev/null +++ b/aio/src/extra-files/archive/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / \ No newline at end of file diff --git a/aio/src/extra-files/next/robots.txt b/aio/src/extra-files/next/robots.txt new file mode 100644 index 0000000000..77470cb39f --- /dev/null +++ b/aio/src/extra-files/next/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / \ No newline at end of file