@vitnode/core 1.2.0-canary.12 → 1.2.0-canary.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ import type { NextConfig } from 'next';
2
+ import createNextIntlPlugin from 'next-intl/plugin';
3
+ import * as dotenv from 'dotenv';
4
+ import { join } from 'path';
5
+
6
+ const withNextIntl = createNextIntlPlugin('./src/vitnode.config.ts');
7
+
8
+ dotenv.config({
9
+ path: join(process.cwd(), '..', '..', '.env'),
10
+ });
11
+
12
+ export const vitNodeNextConfig = (config: NextConfig): NextConfig =>
13
+ withNextIntl({
14
+ ...config,
15
+ env: {
16
+ ...config.env,
17
+ POSTGRES_URL: process.env.POSTGRES_URL ?? '',
18
+ POSTGRES_HOST: process.env.POSTGRES_HOST ?? 'localhost',
19
+ POSTGRES_PORT: process.env.POSTGRES_PORT
20
+ ? process.env.POSTGRES_PORT
21
+ : '5432',
22
+ POSTGRES_USER: process.env.POSTGRES_USER ?? 'root',
23
+ POSTGRES_PASSWORD: process.env.POSTGRES_PASSWORD ?? 'root',
24
+ POSTGRES_NAME: process.env.POSTGRES_NAME ?? 'vitnode',
25
+ POSTGRES_SSL: process.env.POSTGRES_SSL === 'true' ? 'true' : 'false',
26
+ },
27
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitnode/core",
3
- "version": "1.2.0-canary.12",
3
+ "version": "1.2.0-canary.14",
4
4
  "description": "Core package for VitNode, providing essential functionalities and configurations.",
5
5
  "author": "VitNode Team",
6
6
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "vite-tsconfig-paths": "^5.1.4",
60
60
  "vitest": "^3.2.2",
61
61
  "zod": "^3.25.56",
62
- "@vitnode/eslint-config": "1.2.0-canary.12"
62
+ "@vitnode/eslint-config": "1.2.0-canary.14"
63
63
  },
64
64
  "bin": {
65
65
  "vitnode": "./dist/scripts/scripts.js"