chore: add vercel adapter and auth dependencies
This commit is contained in:
parent
b5e9d33cdf
commit
c23358ed8e
4 changed files with 2355 additions and 0 deletions
6
apps/blog/.env.example
Normal file
6
apps/blog/.env.example
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
TURSO_DATABASE_URL=libsql://your-db.turso.io
|
||||||
|
TURSO_AUTH_TOKEN=your-token
|
||||||
|
GITHUB_CLIENT_ID=your-client-id
|
||||||
|
GITHUB_CLIENT_SECRET=your-client-secret
|
||||||
|
ADMIN_GITHUB_ID=your-github-user-id
|
||||||
|
AUTH_SECRET=generate-with-openssl-rand-base64-32
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import { defineConfig } from 'astro/config';
|
import { defineConfig } from 'astro/config';
|
||||||
|
import vercel from '@astrojs/vercel';
|
||||||
import remarkDirective from 'remark-directive';
|
import remarkDirective from 'remark-directive';
|
||||||
import remarkGfm from 'remark-gfm';
|
import remarkGfm from 'remark-gfm';
|
||||||
import remarkSlug from 'remark-slug';
|
import remarkSlug from 'remark-slug';
|
||||||
|
|
@ -7,6 +8,7 @@ import remarkAside from './src/plugins/remark-aside.ts';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: 'static',
|
output: 'static',
|
||||||
|
adapter: vercel(),
|
||||||
markdown: {
|
markdown: {
|
||||||
remarkPlugins: [
|
remarkPlugins: [
|
||||||
remarkGfm,
|
remarkGfm,
|
||||||
|
|
|
||||||
2343
apps/blog/package-lock.json
generated
Normal file
2343
apps/blog/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -7,7 +7,11 @@
|
||||||
"preview": "astro preview"
|
"preview": "astro preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@astrojs/vercel": "^9.0.4",
|
||||||
|
"@auth/core": "^0.37.4",
|
||||||
|
"@libsql/client": "^0.17.0",
|
||||||
"astro": "^5.16.13",
|
"astro": "^5.16.13",
|
||||||
|
"auth-astro": "^4.2.0",
|
||||||
"js-yaml": "^4.1.1"
|
"js-yaml": "^4.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue