-
Make changes to the source code in
src/
. -
Create build folder
npm run build
-
Replace the build folder in
resources/s3/webfiles/
-
Copy the index.html file from
resources/s3/webfiles/build
toresources/lambda/react
and run the following commands on it.
sed -i 's,href="/,href="S3_BUCKET/,g' index.html
sed -i 's,src="/,src="S3_BUCKET/,g' index.html
- Run the terraform apply action.