Commit 8a12098 1 parent e427a1c commit 8a12098 Copy full SHA for 8a12098
File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ touch ./.buildlock
17
17
build_type=" vagovdev"
18
18
web_path=" ./web"
19
19
build_path=" ${web_path} /build/${build_type} "
20
- assets_base_url=" https://dev-va-gov-assets\.s3-us-gov-west-1\.amazonaws\.com"
21
20
rm -rf " ${build_path} "
22
21
23
22
pushd " ${web_path} "
@@ -35,11 +34,19 @@ yarn build \
35
34
popd
36
35
37
36
echo " Replacing s3 address with local in generated files."
37
+ assets_base_url=" https://dev-va-gov-assets\.s3-us-gov-west-1\.amazonaws\.com"
38
38
find \
39
39
" ${build_path} /generated" \
40
40
-type f \
41
41
-exec sed -i " s#${assets_base_url} ##g" {} \+ ;
42
42
43
+ echo " Replacing s3 address with local in built content."
44
+ dev_base_url=" https://s3-us-gov-west-1\.amazonaws\.com/content\.dev\.va\.gov"
45
+ find \
46
+ " ${build_path} " \
47
+ -type f \
48
+ -exec sed -i -e " s#${dev_base_url} ##g" {} \+ ;
49
+
43
50
rm ./.buildlock
44
51
45
52
popd > /dev/null
You can’t perform that action at this time.
0 commit comments