from '$env/dynamic/private'; import { env as publicEnv } from '$env/dynamic/public'; import { API_KEY } from '$env/static/private'; import { PUBLIC_BASE_URL } from '$env/static/public'; 上記のようなモジュールが利⽤できる。
Auto generated by typedotenv */ if (typeof process.env.TEST !== 'string') throw new Error('TEST is not defined in .env'); export const TEST = process.env.TEST;