feat: implement PocketBase database schema setup script and core API service for content management
This commit is contained in:
@@ -10,7 +10,14 @@ export default defineConfig({
|
||||
'/api/anthropic': {
|
||||
target: 'https://api.anthropic.com',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api\/anthropic/, '')
|
||||
rewrite: (path) => path.replace(/^\/api\/anthropic/, ''),
|
||||
configure: (proxy) => {
|
||||
proxy.on('proxyReq', (proxyReq) => {
|
||||
if (process.env.ANTHROPIC_API_KEY) {
|
||||
proxyReq.setHeader('x-api-key', process.env.ANTHROPIC_API_KEY);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user