Skip to content

Instantly share code, notes, and snippets.

@yasudacloud
Last active April 5, 2026 10:42
Show Gist options
  • Select an option

  • Save yasudacloud/9c3f63dd15bf0ad3df7451c604cd024d to your computer and use it in GitHub Desktop.

Select an option

Save yasudacloud/9c3f63dd15bf0ad3df7451c604cd024d to your computer and use it in GitHub Desktop.
emdash nodejs deploy config
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