Skip to content

Commit

Permalink
✨ Update astro env to remove need for "PUBLIC" prefix. Also support p…
Browse files Browse the repository at this point in the history
…rivate usage within vercel serverless.
  • Loading branch information
penrodlol committed Jun 18, 2024
1 parent 3393095 commit a88a37f
Show file tree
Hide file tree
Showing 9 changed files with 3,767 additions and 3,146 deletions.
21 changes: 11 additions & 10 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,17 @@ 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' }),
LOCATION: envField.string({ context: 'server', access: 'public' }),
EMAIL: envField.string({ context: 'server', access: 'public' }),
USERNAME: envField.string({ context: 'server', access: 'public' }),
GITHUB: envField.string({ context: 'server', access: 'public', url: true }),
TWITTER: envField.string({ context: 'server', access: 'public', url: true }),
LINKEDIN: envField.string({ context: 'server', access: 'public', url: true }),
JOB_LINK: envField.string({ context: 'server', access: 'public', url: true }),
JOB_NAME: envField.string({ context: 'server', access: 'public' }),
COLLEGE_LINK: envField.string({ context: 'server', access: 'public', url: true }),
COLLEGE_NAME: envField.string({ context: 'server', access: 'public' }),
GITHUB_TOKEN: envField.string({ context: 'server', access: 'secret' }),
},
},
},
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,34 @@
"dependencies": {
"@alpinejs/collapse": "^3.14.0",
"@alpinejs/focus": "^3.14.0",
"@astrojs/db": "^0.11.4",
"@astrojs/db": "^0.11.6",
"alpinejs": "^3.14.0",
"astro": "^4.10.0"
"astro": "^4.10.3"
},
"devDependencies": {
"@astrojs/alpinejs": "^0.4.0",
"@astrojs/mdx": "^3.1.0",
"@astrojs/mdx": "^3.1.1",
"@astrojs/rss": "^4.0.6",
"@astrojs/sitemap": "^3.1.5",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/vercel": "^7.6.0",
"@astrojs/vercel": "^7.7.1",
"@fontsource/inter": "^5.0.18",
"@octokit/rest": "^20.1.1",
"@types/alpinejs": "^3.13.10",
"astro-og-canvas": "^0.5.0",
"astro-og-canvas": "^0.5.1",
"astro-robots-txt": "^1.0.0",
"canvaskit-wasm": "^0.39.1",
"lucide-astro": "^0.390.0",
"lucide-astro": "^0.395.0",
"mdast-util-from-markdown": "^2.0.1",
"mdast-util-to-string": "^4.0.0",
"prettier": "3.3.1",
"prettier": "3.3.2",
"prettier-plugin-astro": "0.14.0",
"prettier-plugin-tailwindcss": "^0.6.1",
"prettier-plugin-tailwindcss": "^0.6.5",
"reading-time": "^1.5.0",
"rehype-pretty-code": "^0.13.2",
"sass": "^1.77.4",
"sass": "^1.77.6",
"sharp": "^0.33.4",
"shiki": "^1.6.2",
"shiki": "^1.7.0",
"tailwind-merge": "^2.3.0",
"tailwind-scrollbar": "^3.1.0",
"tailwind-variants": "^0.2.1",
Expand Down
Loading

0 comments on commit a88a37f

Please sign in to comment.