Skip to content

Commit

Permalink
✨ astro:env
Browse files Browse the repository at this point in the history
  • Loading branch information
penrodlol committed Jun 7, 2024
1 parent 45ecdf6 commit 73a0593
Show file tree
Hide file tree
Showing 10 changed files with 511 additions and 275 deletions.
19 changes: 18 additions & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
import vercel from '@astrojs/vercel/serverless';
import robotsTxt from 'astro-robots-txt';
import { defineConfig } from 'astro/config';
import { defineConfig, envField } from 'astro/config';
import { toString } from 'mdast-util-to-string';
import readingTime from 'reading-time';
import rehypePrettyCode from 'rehype-pretty-code';
Expand All @@ -26,6 +26,23 @@ export default defineConfig({
},
],
},
experimental: {
env: {
schema: {
PUBLIC_LOCATION: envField.string({ context: 'server', access: 'public' }),
PUBLIC_EMAIL: envField.string({ context: 'server', access: 'public' }),
PUBLIC_USERNAME: envField.string({ context: 'server', access: 'public' }),
PUBLIC_GITHUB: envField.string({ context: 'server', access: 'public' }),
PUBLIC_TWITTER: envField.string({ context: 'server', access: 'public' }),
PUBLIC_LINKEDIN: envField.string({ context: 'server', access: 'public' }),
PUBLIC_JOB_LINK: envField.string({ context: 'server', access: 'public' }),
PUBLIC_JOB_NAME: envField.string({ context: 'server', access: 'public' }),
PUBLIC_COLLEGE_LINK: envField.string({ context: 'server', access: 'public' }),
PUBLIC_COLLEGE_NAME: envField.string({ context: 'server', access: 'public' }),
GITHUB_TOKEN: envField.string({ context: 'server', access: 'secret' }),
},
},
},
integrations: [
tailwind(),
mdx(),
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"@alpinejs/focus": "^3.14.0",
"@astrojs/db": "^0.11.4",
"alpinejs": "^3.14.0",
"astro": "^4.9.1"
"astro": "^4.10.0"
},
"devDependencies": {
"@astrojs/alpinejs": "^0.4.0",
"@astrojs/mdx": "^3.0.1",
"@astrojs/mdx": "^3.1.0",
"@astrojs/rss": "^4.0.6",
"@astrojs/sitemap": "^3.1.5",
"@astrojs/tailwind": "^5.1.0",
Expand All @@ -30,21 +30,21 @@
"astro-og-canvas": "^0.5.0",
"astro-robots-txt": "^1.0.0",
"canvaskit-wasm": "^0.39.1",
"lucide-astro": "^0.379.0",
"mdast-util-from-markdown": "^2.0.0",
"lucide-astro": "^0.390.0",
"mdast-util-from-markdown": "^2.0.1",
"mdast-util-to-string": "^4.0.0",
"prettier": "3.2.5",
"prettier": "3.3.1",
"prettier-plugin-astro": "0.14.0",
"prettier-plugin-tailwindcss": "^0.5.14",
"prettier-plugin-tailwindcss": "^0.6.1",
"reading-time": "^1.5.0",
"rehype-pretty-code": "^0.13.2",
"sass": "^1.77.2",
"sass": "^1.77.4",
"sharp": "^0.33.4",
"shiki": "^1.6.0",
"shiki": "^1.6.2",
"tailwind-merge": "^2.3.0",
"tailwind-scrollbar": "^3.1.0",
"tailwind-variants": "^0.2.1",
"tailwindcss": "^3.4.3",
"tailwindcss": "^3.4.4",
"tailwindcss-animate": "^1.0.7",
"tailwindcss-fluid-type": "^2.0.6"
}
Expand Down
Loading

0 comments on commit 73a0593

Please sign in to comment.