-
-
Save yasudacloud/9c3f63dd15bf0ad3df7451c604cd024d to your computer and use it in GitHub Desktop.
emdash nodejs deploy config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import react from "@astrojs/react"; | |
| import {defineConfig, memoryCache} from "astro/config"; | |
| import emdash, {s3} from "emdash/astro"; | |
| import node from "@astrojs/node"; | |
| import {postgres} from "emdash/db"; | |
| export default defineConfig({ | |
| output: "server", | |
| adapter: node({mode: "standalone"}), | |
| security: { | |
| allowedDomains: [ | |
| { | |
| hostname: 'ここにドメイン名', | |
| protocol: 'https', | |
| }] | |
| }, | |
| experimental: { | |
| cache: { | |
| provider: memoryCache(), | |
| }, | |
| }, | |
| image: { | |
| layout: "constrained", | |
| responsiveStyles: true, | |
| }, | |
| integrations: [ | |
| react(), | |
| emdash({ | |
| database: postgres({ | |
| host: process.env.DB_HOST, | |
| port: 6543, // Supabaseのコネクションプール | |
| database: process.env.DB_NAME, | |
| user: process.env.DB_USER, | |
| password: process.env.DB_PASSWORD, | |
| }), | |
| storage: s3({ | |
| bucket: process.env.S3_BUCKET, | |
| endpoint: 'https://s3.ap-northeast-1.amazonaws.com', | |
| region: process.env.S3_REGION, | |
| accessKeyId: process.env.S3_ACCESS_KEY_ID, | |
| secretAccessKey: process.env.S3_SECRET_ACCESS_KEY, | |
| }) | |
| }), | |
| ], | |
| devToolbar: {enabled: false}, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment