Skip to content

WIP: Implement BKND #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ebad9a6
initial commit adding bknd
cameronapak Dec 1, 2024
5155d28
Update Astro configuration and dependencies
cameronapak Dec 1, 2024
0f8a6d7
Enhance admin page structure and error handling
cameronapak Dec 1, 2024
4b857a1
Refactor API configuration in [...api].ts
cameronapak Dec 3, 2024
fbef2f3
Update dev script in package.json to use remote mode
cameronapak Dec 3, 2024
ed862c3
Add bknd.todo file with initial task for Astro DB configuration
cameronapak Dec 3, 2024
fde44d4
added bknd integration
cameronapak Dec 3, 2024
121c1fb
Add bknd integration files for admin dashboard and API setup
cameronapak Dec 3, 2024
ab84d3f
fixed import conflict naming
cameronapak Dec 3, 2024
d8f4989
rm auth catch all file for better auth
cameronapak Dec 3, 2024
6bf4aec
Enhance bknd integration with initial configuration support
cameronapak Dec 3, 2024
c767ca3
Refactor bknd integration to enhance configurability and error handling
cameronapak Dec 3, 2024
287c4fb
Refactor bknd integration to use named export and improve configurati…
cameronapak Dec 3, 2024
a996891
Refactor bknd integration to streamline configuration and enhance rou…
cameronapak Dec 3, 2024
5e7f217
Refactor bknd integration to generate API file dynamically and improv…
cameronapak Dec 3, 2024
e14d94e
Update bknd package version to 0.2.1 and clean up package-lock.json
cameronapak Dec 4, 2024
b0bbe43
Refactor bknd integration by removing unused state management and sim…
cameronapak Dec 4, 2024
d9dddf5
Remove bknd.todo file and add vision.md outlining the Freedom Stack v…
cameronapak Dec 4, 2024
2a1d2ce
Do not add initial version
cameronapak Dec 4, 2024
19be187
v0.2.2 fixed all lodash weirdness
cameronapak Dec 4, 2024
2c75d9b
Refactor bknd integration and admin dashboard
cameronapak Dec 4, 2024
f537d66
Using alpha version of bknd (temp)
cameronapak Dec 6, 2024
be25ccf
rm unecessary attempt to seed
cameronapak Dec 6, 2024
5b21753
rm unused deps
cameronapak Dec 6, 2024
ab4ece6
Add cross-env dependency and implement database seeding script
cameronapak Dec 6, 2024
00e4b67
updated to package that I was told to update to
cameronapak Dec 8, 2024
425b49d
fixed the app to only render on client
cameronapak Dec 8, 2024
5e778f8
rm db seed file
cameronapak Dec 8, 2024
1da557b
Auto generate Astro admin file :)
cameronapak Dec 8, 2024
ddd4ae7
fixed basepath error
cameronapak Dec 8, 2024
e103757
Add bknd integration actions for user authentication
cameronapak Dec 8, 2024
0716a97
Refactor bknd authentication handlers to use context URL and improve …
cameronapak Dec 8, 2024
7774ab5
Refactor authentication middleware to use bknd API
cameronapak Dec 8, 2024
9e6ec22
Refactor authentication logic to use user context
cameronapak Dec 8, 2024
1208e97
Enhance index.astro with new external links and titles for better acc…
cameronapak Dec 2, 2024
b9a69d5
Update sign up, sign in, and forgot password components (#43)
cameronapak Dec 8, 2024
1e0a28c
Update to Astro v5 (#44)
cameronapak Dec 8, 2024
56f1eee
Astro v5.0.3 -> v5.0.4 (#45)
cameronapak Dec 25, 2024
8bc0ac7
updated packages
cameronapak Dec 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import tailwind from "@astrojs/tailwind";
import alpinejs from "@astrojs/alpinejs";
import netlify from "@astrojs/netlify";
import db from "@astrojs/db";
import react from "@astrojs/react";
import { addBknd } from "./src/integrations/bknd";
import { loadEnv } from "vite";

const { ASTRO_DB_REMOTE_URL, ASTRO_DB_APP_TOKEN } = loadEnv(process.env.NODE_ENV, process.cwd(), "");

// https://astro.build/config
export default defineConfig({
Expand All @@ -11,11 +16,31 @@ export default defineConfig({
tailwind(),
alpinejs({
entrypoint: "/src/entrypoint"
}),
react({
experimentalReactChildren: true
}),
addBknd({
connection: {
type: "libsql",
config: {
url: ASTRO_DB_REMOTE_URL,
authToken: ASTRO_DB_APP_TOKEN
}
}
})
],
vite: {
optimizeDeps: {
exclude: ["astro:db"]
exclude: ["astro:db"],
include: ["lodash-es"]
},
resolve: {
dedupe: ["react", "react-dom"]
},
ssr: {
external: ["react", "react-dom"],
noExternal: ["bknd", "lodash-es"]
}
},
output: "server",
Expand Down
3 changes: 3 additions & 0 deletions bknd.todo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

- [ ] Add config for bknd as seed for Astro DB.

Loading