Skip to content

Commit

Permalink
fix: try fail fast approach
Browse files Browse the repository at this point in the history
  • Loading branch information
lewxdev committed Aug 27, 2024
1 parent 1653933 commit 53a39df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BASE_URL=http://localhost:3000

# redis
REDIS_PASSWORD=
REDIS_URL=redis://default:$REDIS_PASSWORD@localhost:16379
1 change: 1 addition & 0 deletions .github/workflows/fly-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- id: deploy
uses: superfly/fly-pr-review-apps@1.2.1
with:
name: ${{ env.FLY_APP_NAME }}
secrets: |
BASE_URL=https://${{ env.FLY_APP_NAME }}.fly.dev
REDIS_URL=${{ secrets.REDIS_URL }}
3 changes: 1 addition & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import "@/globals.css";

const title = "mmmines!";
const description = "an endless, massive multiplayer minesweeper game";
const baseUrl = process.env["BASE_URL"];

export const metadata: Metadata = {
title,
Expand All @@ -18,7 +17,7 @@ export const metadata: Metadata = {
{ url: "/icon-dark.svg", media: "(prefers-color-scheme: dark)" },
],
},
metadataBase: baseUrl ? new URL(baseUrl) : null,
metadataBase: new URL(process.env["BASE_URL"]!),
openGraph: {
title,
description,
Expand Down

0 comments on commit 53a39df

Please sign in to comment.