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
|
||||
yarn build -- --env=$deployEnv
|
||||
|
||||
# Include any mode-specific files
|
||||
cp -rf src/extra-files/$deployEnv/. dist/
|
||||
|
||||
# Check payload size
|
||||
yarn payload-size
|
||||
|
||||
|
|
|
@ -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.
|
|
@ -0,0 +1,2 @@
|
|||
User-agent: *
|
||||
Disallow: /
|
|
@ -0,0 +1,2 @@
|
|||
User-agent: *
|
||||
Disallow: /
|
Loading…
Reference in New Issue