Skip to content

Commit

Permalink
Merge branch 'main' into deno-task-ok
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Apr 19, 2023
2 parents b2fd058 + de8516c commit 7f9f7fa
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .example.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
SUPABASE_URL=http://localhost:54321
SUPABASE_SERVICE_KEY=xxx
SUPABASE_API_URL=http://localhost:54321
SUPABASE_SERVICE_ROLE_KEY=xxx

STRIPE_SECRET_KEY=sk_test_xxx
STRIPE_WEBHOOK_SECRET=xxx
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings in all text files.
* text=auto eol=lf
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ on:

jobs:
ci:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- windows-2022
- macOS-12

steps:
- name: Setup repo
Expand Down
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Want to know where Deno SaaSKit is headed? Check out

1. Clone the repo:

```
```bash
git clone https://github.com/denoland/saaskit.git
cd saaskit
```
Expand Down Expand Up @@ -158,20 +158,6 @@ TODO

TODO

## Architecture

### Authentication

TODO:

- Blog
- Database
- Formatting
- Fresh
- Linting
- Payments
- Testing

## Contributing

When submitting a pull request, please follow the
Expand Down
2 changes: 1 addition & 1 deletion routes/login/success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import AuthFragmentCatcher from "@/islands/AuthFragmentCatcher.tsx";
export default function OAuthSuccessPage() {
return (
<AuthFragmentCatcher
supabaseUrl={Deno.env.get("SUPABASE_URL")!}
supabaseUrl={Deno.env.get("SUPABASE_API_URL")!}
supabaseKey={Deno.env.get("SUPABASE_ANON_KEY")!}
/>
);
Expand Down
6 changes: 3 additions & 3 deletions utils/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function createSupabaseClient(
responseHeaders?: Headers,
) {
return createServerSupabaseClient<Database>({
supabaseUrl: Deno.env.get("SUPABASE_URL")!,
supabaseUrl: Deno.env.get("SUPABASE_API_URL")!,
supabaseKey: Deno.env.get("SUPABASE_ANON_KEY")!,
getRequestHeader: (key) => requestHeaders.get(key) ?? undefined,
getCookie: (name) => {
Expand All @@ -33,8 +33,8 @@ export function createSupabaseClient(

// Required to bypass Row Level Security (RLS)
export const supabaseAdminClient = createClient<Database>(
Deno.env.get("SUPABASE_URL")!,
Deno.env.get("SUPABASE_SERVICE_KEY")!,
Deno.env.get("SUPABASE_API_URL")!,
Deno.env.get("SUPABASE_SERVICE_ROLE_KEY")!,
);

async function getCustomer(
Expand Down

0 comments on commit 7f9f7fa

Please sign in to comment.