Skip to content

Commit

Permalink
Remove supabase
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesTaylor7 committed Nov 28, 2024
1 parent 5be9f4e commit 2b54cc2
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 415 deletions.
5 changes: 2 additions & 3 deletions deploy.nu
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
def main [branch: string = "main"] {
let api_key = open .env | get UPLOAD_THING_API_KEY

# generate minified stylesheet
tailwindcss --input tailwind.source.css --output public/styles/index.css --minify
let api_key = open .env | get UPLOADTHING_API_KEY

# upload assets to supabase cdn
node upload-assets.js
# TODO: upload public dir

# deploy to citadels.fly.dev
fly secrets set GIT_SHA=$(git show -s --format=%H)
Expand Down
10 changes: 6 additions & 4 deletions src/markup/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ pub fn asset(path: &str) -> String {
if cfg!(feature = "dev") {
format!("/public/{path}")
} else {
format!(
"{}/storage/v1/object/public/assets/{path}",
env::var("SUPABASE_PROJECT_URL").unwrap()
)
format!("/public/{path}")
// TODO: use uploadthing in production
// format!(
// "{}/storage/v1/object/public/assets/{path}",
// env::var("SUPABASE_PROJECT_URL").unwrap()
// )
}
}
4 changes: 0 additions & 4 deletions supabase/.gitignore

This file was deleted.

134 changes: 0 additions & 134 deletions supabase/config.toml

This file was deleted.

206 changes: 0 additions & 206 deletions supabase/migrations/20240512200629_remote_schema.sql

This file was deleted.

1 change: 0 additions & 1 deletion supabase/seed.sql

This file was deleted.

Loading

0 comments on commit 2b54cc2

Please sign in to comment.