Skip to content

Commit 775a128

Browse files
Giovanni GargiuloGiovanni Gargiulo
authored andcommitted
chore: routing issues
1 parent 81014a1 commit 775a128

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

frontend/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ docker build -t "${DOCKER_IMAGE}" \
1515
--build-arg NEXT_PUBLIC_API_URL=http://programmable-tokens-int \
1616
--build-arg NEXT_PUBLIC_BLOCKFROST_API_KEY=preview63R2hq5OToB1PRYyxDQ1NpmS23rbyS88 \
1717
--build-arg NETWORK=Preview \
18+
--push
1819
.

frontend/nginx.conf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ http {
1818
root /usr/share/nginx/html;
1919
index index.html;
2020

21-
# Enable SPA routing - serve index.html for all routes
21+
# Redirect root to /mint-authority
22+
location = / {
23+
return 301 /mint-authority.html;
24+
}
25+
26+
# Enable SPA routing - serve HTML files for routes
2227
location / {
23-
try_files $uri $uri/ /index.html;
28+
try_files $uri $uri.html $uri/ =404;
2429
}
2530

2631
# Cache static assets

0 commit comments

Comments
 (0)