Skip to content

Commit 6d7ca96

Browse files
committed
attempting build again, getting faster with hotkeys
1 parent f8f5fe8 commit 6d7ca96

3 files changed

Lines changed: 11 additions & 115 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 0 additions & 100 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Based on [nextjs-github-pages](https://github.com/gregrickaby/nextjs-github-page
88
- [repo](https://github.com/seeReadCode/bookmarks)
99
- [prod](https://seereadcode.github.io/bookmarks/)
1010
- [codespace dev](https://shiny-lamp-wpjpj5q7vj3ggw9.github.dev/)
11-
- [codespace brodfwser](https://shiny-lamp-wpjpj5q7vj3ggw9-4205.app.github.dev/)
11+
- [codespace browser](https://shiny-lamp-wpjpj5q7vj3ggw9-4205.app.github.dev/)
1212
- [codespace admin](https://github.com/codespaces?repository_id=1036822786)
1313

1414

@@ -32,7 +32,7 @@ Based on [nextjs-github-pages](https://github.com/gregrickaby/nextjs-github-page
3232
fi-
3333
- locate server log to debug 404
3434
- decide deploy.yml (from cloned repo) v. alt from github.com
35-
- ... and fix build
35+
- ... and fix build
3636
> ⚠️ Heads up! GitHub Pages _does not_ support serverless or edge functions. This means dynamic functionality will be disabled. See all the [unsupported features](https://nextjs.org/docs/app/building-your-application/deploying/static-exports#unsupported-features).
3737
3838

app/page.tsx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
import Image from "next/image";
2+
const response = fetch('https://api.raindrop.io/rest/v1/collections', {
3+
headers: {
4+
'Accept': 'application/json',
5+
'Authorization': `Bearer ${process.env.RAINDROP_SECRET}`,
6+
}
7+
})
8+
.then(response => response.text())
9+
.then(text => console.log(text))
210

311
export default function Home() {
4-
const response = await fetch('https://api.raindrop.io/rest/v1/collections', {
5-
headers: {
6-
'Accept': 'application/json',
7-
'Authorization': `Bearer ${process.env.RAINDROP_SECRET}`,
8-
}
9-
});
10-
const data = await response.json();
11-
// .then(response => response.text())
12-
// .then(text => console.log(text))
13-
console.log(process.env);
14-
console.log(data);
15-
const text = data.text;
1612
return (
1713
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
1814
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
19-
{text}
15+
{response}
2016
<Image
2117
className="dark:invert"
2218
src="/bookmarks/next.svg"

0 commit comments

Comments
 (0)