ci(aio): include extra files in AIO deployment based on mode
Any files that are inside the `extra-files/{mode}` folder will be copied over to the `dist` folder before deployment to Firebase. See #18287
This commit is contained in:
parent
bcb36d9b6d
commit
0714139e37
@ -78,6 +78,9 @@ echo "Deployment URL : $deployedUrl"
|
|||||||
# Build the app
|
# Build the app
|
||||||
yarn build -- --env=$deployEnv
|
yarn build -- --env=$deployEnv
|
||||||
|
|
||||||
|
# Include any mode-specific files
|
||||||
|
cp -rf src/extra-files/$deployEnv/. dist/
|
||||||
|
|
||||||
# Check payload size
|
# Check payload size
|
||||||
yarn payload-size
|
yarn payload-size
|
||||||
|
|
||||||
|
9
aio/src/extra-files/README.md
Normal file
9
aio/src/extra-files/README.md
Normal file
@ -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.
|
2
aio/src/extra-files/archive/robots.txt
Normal file
2
aio/src/extra-files/archive/robots.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
2
aio/src/extra-files/next/robots.txt
Normal file
2
aio/src/extra-files/next/robots.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
Loading…
x
Reference in New Issue
Block a user