Add environment variable configuration for WEBMENTION_TOKEN and simplify token handling in fetchMentions function
All checks were successful
Deploy / deploy (push) Successful in 1m18s
All checks were successful
Deploy / deploy (push) Successful in 1m18s
This commit is contained in:
parent
1a3e4bf64a
commit
d7cb6b5346
2 changed files with 16 additions and 11 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import mdx from '@astrojs/mdx';
|
||||
import sitemap from '@astrojs/sitemap';
|
||||
import { defineConfig, fontProviders } from 'astro/config';
|
||||
import { defineConfig, envField, fontProviders } from 'astro/config';
|
||||
|
||||
import node from '@astrojs/node';
|
||||
|
||||
|
|
@ -10,6 +10,16 @@ import node from '@astrojs/node';
|
|||
export default defineConfig({
|
||||
site: 'https://adrian-altner.de',
|
||||
|
||||
env: {
|
||||
schema: {
|
||||
WEBMENTION_TOKEN: envField.string({
|
||||
context: 'server',
|
||||
access: 'secret',
|
||||
optional: true,
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
||||
devToolbar: {
|
||||
enabled: false,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue