Skip to content

Commit

Permalink
Using experimental astro:env & version bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
dorukgezici committed Sep 27, 2024
1 parent 76b02d8 commit ccdd5df
Show file tree
Hide file tree
Showing 10 changed files with 874 additions and 1,865 deletions.
12 changes: 12 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig, envField } from "astro/config";

export default defineConfig({
experimental: {
env: {
schema: {
OAUTH_GITHUB_CLIENT_ID: envField.string({ context: "server", access: "secret" }),
OAUTH_GITHUB_CLIENT_SECRET: envField.string({ context: "server", access: "secret" }),
},
},
},
});
1 change: 1 addition & 0 deletions demo/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
29 changes: 20 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
"name": "astro-decap-cms-oauth",
"version": "0.3.1",
"description": "Add Decap CMS’s admin dashboard and a custom OAuth backend to your Astro project",
"keywords": ["astro-integration", "astro-component", "cms", "decap-cms", "oauth"],
"keywords": [
"astro-integration",
"astro-component",
"cms",
"decap-cms",
"oauth"
],
"author": "Doruk Gezici",
"license": "MIT",
"repository": {
Expand All @@ -12,7 +18,11 @@
"bugs": "https://github.com/dorukgezici/astro-decap-cms-oauth/issues",
"homepage": "https://github.com/dorukgezici/astro-decap-cms-oauth",
"type": "module",
"files": ["dist", "src", "README.md"],
"files": [
"dist",
"src",
"README.md"
],
"main": "./dist/astro-decap-cms-oauth.umd.cjs",
"module": "./dist/astro-decap-cms-oauth.js",
"types": "./dist/astro-decap-cms-oauth.d.ts",
Expand All @@ -29,16 +39,17 @@
"scripts": {
"dev": "vite build --watch",
"build": "tsc && vite build",
"prepublishOnly": "pnpm run build"
"prepublishOnly": "pnpm run build",
"sync": "pnpm astro sync"
},
"devDependencies": {
"@types/node": "^20.14.8",
"astro": "^4.11.0",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
"@types/node": "^22.7.4",
"astro": "^4.15.9",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"vite-plugin-dts": "^4.2.2"
},
"peerDependencies": {
"astro": "^3.0.0 || ^4.0.0"
"astro": "^4.0.0"
}
}
Loading

0 comments on commit ccdd5df

Please sign in to comment.