This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: preparing dynamic pages and routes
- Loading branch information
Showing
14 changed files
with
85 additions
and
67 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 |
---|---|---|
|
@@ -25,6 +25,7 @@ yarn-debug.log* | |
yarn-error.log* | ||
|
||
# local env files | ||
_.env | ||
.env*.local | ||
.env.dev | ||
.env | ||
|
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
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
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
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
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
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,24 +1,20 @@ | ||
import Link from "next/link"; | ||
|
||
|
||
|
||
export default async function TestPage() { | ||
|
||
|
||
|
||
return ( | ||
<main className="h-screen flex flex-col justify-front items-center gap-4 bg-slate-200"> | ||
<p>Test page with hardcoded retrieval from db</p> | ||
<div className="container"> | ||
<p>Scheduled for deletion</p> | ||
<br></br> | ||
<Link href="/test/buddy/"><button className="btn btn-accent">1 dynamic path</button></Link> | ||
<p>Scheduled for deletion</p> | ||
<br></br> | ||
<Link href="/test/buddy/"> | ||
<button className="btn btn-accent">1 dynamic path</button> | ||
</Link> | ||
<br></br> | ||
<Link href="/test/buddy/loving-buddy"><button className="btn btn-accent">2 dynamic path</button></Link> | ||
|
||
<Link href="/test/buddy/loving-buddy"> | ||
<button className="btn btn-accent">2 dynamic path</button> | ||
</Link> | ||
</div> | ||
|
||
|
||
</main> | ||
) | ||
} | ||
); | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { Resend } from 'resend'; | ||
import { Resend } from "resend"; | ||
|
||
const RESEND_API_KEY = process.env.RESEND_API_KEY; | ||
const RESEND_API_KEY = process.env.RESEND_API_KEY ?? "invalid"; | ||
|
||
export const resend = new Resend(RESEND_API_KEY); | ||
export const resend = new Resend(RESEND_API_KEY); |