Skip to content

Commit

Permalink
Merge pull request #149 from fogbender/feat/update-astro
Browse files Browse the repository at this point in the history
update astro
  • Loading branch information
JLarky authored Aug 11, 2024
2 parents c6fa937 + f27c2a3 commit e60fe80
Show file tree
Hide file tree
Showing 8 changed files with 1,973 additions and 1,760 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.2.0",
"@astrojs/react": "^3.0.0",
"@astrojs/vercel": "^4.0.2",
"@astrojs/check": "0.9.2",
"@astrojs/react": "3.6.2",
"@astrojs/vercel": "7.7.2",
"@propelauth/base-elements": "^0.0.16",
"@propelauth/node": "^2.1.0",
"@propelauth/react": "2.1.0-beta.4",
Expand All @@ -40,7 +40,7 @@
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"astro": "^3.0.12",
"astro": "4.13.3",
"astro-seo": "^0.7.2",
"clsx": "^1.2.1",
"cookie": "^0.5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/content/setup/supabase.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Supabase is free for 2 lightweight projects.
- Open a fresh editor buffer and paste the password there
- Click "Create new project" - this can take a few minutes to complete

2. Click on <a href="https://app.supabase.com/project/_/settings/database" >"Project Settings" - "Database"</a>, navigate to "Connection string" and copy the URI (it will look something like `postgresql://postgres:[YOUR-PASSWORD]@db.xxxxxxxxxxxxxxxxxxxx.supabase.co:5432/postgres`)
2. Click on <a href="https://app.supabase.com/project/_/settings/database" >"Project Settings" - "Database"</a>, navigate to "Connection string" and copy the URI (it will look something like `postgresql://postgres.xxxxxxxxxxxxxxxxxxxx:[YOUR-PASSWORD]@aws-0-us-east-1.pooler.supabase.com:6543/postgres`)

3. Paste the URI to the editor buffer from step 1, replace `[YOUR-PASSWORD]` with your password, then copy the resulting string

Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/orgs/[orgId].ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { serverEnv } from '../../../t3-env';

export const prerender = false;

export const get: APIRoute = async ({ params, request }) => {
export const GET: APIRoute = async ({ params, request }) => {
const propelauth = initBaseAuth({
authUrl: serverEnv.PUBLIC_AUTH_URL,
apiKey: serverEnv.PROPELAUTH_API_KEY,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/trpc/[trpc].ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { appRouter } from '../../../lib/trpc/root';
export const prerender = false;

// The Astro API route, handling all incoming HTTP requests.
export const all: APIRoute = ({ request }) => {
export const ALL: APIRoute = ({ request }) => {
return fetchRequestHandler({
endpoint: '/api/trpc',
req: request,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/demo/trpc/create_caller.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createCaller } from '../../../lib/trpc/root';

export const prerender = false; // to allow dynamic title per user

export const all: APIRoute = async ({ request }) => {
export const ALL: APIRoute = async ({ request }) => {
const responseHeaders = new Headers();
responseHeaders.set('content-type', 'application/json');
const callerExample = await createCaller({
Expand Down
2 changes: 1 addition & 1 deletion src/pages/og/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import OpenGraphPrompt from './_openGraphPrompt';

export const prerender = false;

export const get: APIRoute = async (request) => {
export const GET: APIRoute = async (request) => {
const params = request.url.searchParams;
const kind = params.get('kind') as 'prompt' | null;
const title = params.get('title') ?? websiteTitle;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/robots.txt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { APIRoute } from 'astro';
export const prerender = true; // generates static robots.txt 🤯

// you might consider using `astro-robots-txt` instead of this file
export const get: APIRoute = () => {
export const GET: APIRoute = () => {
const site = import.meta.env.SITE as string | undefined;
const siteUrl = site ? new URL(site) : undefined;
const sitemapEnabled /* B2B:CONFIG */ = false;
Expand Down
Loading

0 comments on commit e60fe80

Please sign in to comment.