Skip to content

Commit ba8be71

Browse files
committed
remove clg and add supabase
1 parent 0081689 commit ba8be71

File tree

8 files changed

+273
-61
lines changed

8 files changed

+273
-61
lines changed

supa-vacation-nextjs/components/Card.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Image from 'next/image';
33
import PropTypes from 'prop-types';
44
import { HeartIcon } from '@heroicons/react/solid';
55

6+
// https://github.com/vercel/next.js/blob/canary/examples/image-component/pages/color.js
67
const shimmer = (w, h) => `
78
<svg width="${w}" height="${h}" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
89
<defs>

supa-vacation-nextjs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"dependencies": {
1717
"@headlessui/react": "^1.6.4",
1818
"@heroicons/react": "^1.0.5",
19+
"@supabase/supabase-js": "^1.35.3",
1920
"@tailwindcss/forms": "^0.4.0",
2021
"classnames": "^2.3.1",
2122
"formik": "^2.2.9",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const handler = async (req, res) => {
2+
// Upload image to Supabase
3+
if (req.method === 'POST') {
4+
// TODO
5+
}
6+
// HTTP method not supported!
7+
else {
8+
res.setHeader('Allow', ['POST']);
9+
res
10+
.status(405)
11+
.json({ message: `HTTP method ${req.method} is not supported.` });
12+
}
13+
}
14+
15+
export default handler;

supa-vacation-nextjs/pages/create.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const Create = () => {
1313
},
1414
body: JSON.stringify(data)
1515
})).json();
16-
console.log(resp);
1716
};
1817

1918
return (

supa-vacation-nextjs/pages/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export default function Home({ homes }) {
2222

2323
export async function getServerSideProps() {
2424
const homes = await getAllHomes();
25-
console.log(homes)
2625
return {
2726
props: {
2827
homes: JSON.parse(JSON.stringify(homes)),

supa-vacation-nextjs/pnpm-lock.yaml

Lines changed: 195 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)