-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
NEXT_PUBLIC_SITEMAP_DOMAIN='https://brc-analytics.dev.clevercanary.com' | ||
NEXT_PUBLIC_BASE_PATH='/data' | ||
SITEMAP_EXCLUDE='/export*,/login' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,7 @@ npm-debug.log* | |
|
||
# favicons | ||
/public/favicons/* | ||
|
||
|
||
# Build Dir | ||
/build |
24 changes: 24 additions & 0 deletions
24
data-catalog/cc-brc-analytics-catalog.dev.clevercanary.com-build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo \"Deleting ./out/\" | ||
rm -rf ./out | ||
|
||
echo \"Deleting ./build/\" | ||
rm -rf ./build | ||
|
||
n 20.10.0 | ||
npm ci | ||
export NEXT_PUBLIC_BASE_PATH="/data" | ||
|
||
mkdir -p build/data | ||
|
||
# Build AnVIL | ||
rm -rf ./out | ||
npm run build:local | ||
mv out/* build/data | ||
|
||
export BUCKET=s3://tik-brc-analytics.dev.data/ | ||
export SRCDIR=build/ | ||
|
||
aws s3 sync $SRCDIR $BUCKET --delete --profile excira | ||
aws cloudfront create-invalidation --distribution-id E1OF5ESEGD5VAG --paths "/*" --profile excira |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,6 @@ npm-debug.log* | |
|
||
# favicons | ||
/public/favicons/* | ||
|
||
# Build Dir | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
export const HomeView = (): JSX.Element => { | ||
return <>Home</>; | ||
return ( | ||
<> | ||
<div> | ||
<div>Home</div> | ||
<div> | ||
<a href="/data">Data</a> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo \"Deleting ./out/\" | ||
rm -rf ./out | ||
|
||
echo \"Deleting ./build/\" | ||
rm -rf ./build | ||
|
||
n 20.10.0 | ||
npm ci | ||
|
||
mkdir -p build | ||
|
||
# Build the website | ||
rm -rf ./out | ||
npm run build:local | ||
mv out/* build | ||
|
||
export BUCKET=s3://tik-brc-analytics.dev/ | ||
export SRCDIR=build/ | ||
|
||
aws s3 sync $SRCDIR $BUCKET --delete --profile excira | ||
aws cloudfront create-invalidation --distribution-id E1OF5ESEGD5VAG --paths "/*" --profile excira |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters