create-veap 0.1.4 → 0.3.1

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.
@@ -1,26 +1,27 @@
1
- import { cache } from "react";
2
- import { Application } from "@veap/framework/core/server";
3
-
4
- import { appMigrations } from "../migrations";
5
- import { plugins } from "./plugins.gen";
6
-
7
- export const app = Application.configure()
8
- .withDatabase()
9
- .withAuth()
10
- .withStorage()
11
- .withCommunication()
12
- .withIntl()
13
- .withRouter()
14
- .withSettings()
15
- .withMigrations(appMigrations)
16
- .withPlugins(plugins)
17
- .withTemplates([])
18
- .create();
19
-
20
- /**
21
- * Main system bootstrap function.
22
- * Called automatically in root layout/pages.
23
- */
24
- export const initializeSystem = cache(async () => {
25
- return app.bootstrap();
26
- });
1
+ import { cache } from "react";
2
+ import { Application } from "@veap/framework/core/server";
3
+
4
+ import { migrations } from "../migrations";
5
+ import { plugins } from "./plugins.gen";
6
+ import { SiteLayout } from "../components/site-layout";
7
+
8
+ export const app = Application.configure()
9
+ .withDatabase()
10
+ .withAuth()
11
+ .withStorage()
12
+ .withCommunication()
13
+ .withIntl()
14
+ .withRouter()
15
+ .withSiteLayout(SiteLayout)
16
+ .withSettings()
17
+ .withMigrations(migrations)
18
+ .withPlugins(plugins)
19
+ .create();
20
+
21
+ /**
22
+ * Main system bootstrap function.
23
+ * Called automatically in root layout/pages.
24
+ */
25
+ export const initializeSystem = cache(async () => {
26
+ return app.bootstrap();
27
+ });
@@ -1,2 +1,2 @@
1
1
  // This file is auto-generated by Veap CLI. Do not edit manually.
2
- export const appMigrations: any[] = [];
2
+ export const migrations: any[] = [];
@@ -1,34 +1,44 @@
1
- import type { NextConfig } from "next";
2
-
3
- const nextConfig: NextConfig = {
4
- serverExternalPackages: ["knex", "pg", "better-sqlite3"],
5
- // Output for standalone build in docker (disabled on Vercel to avoid build crash)
6
- output: process.env.VERCEL ? undefined : "standalone",
7
-
8
- transpilePackages: ["@veap/framework", "@veap/ui"],
9
-
10
- reactCompiler: true,
11
-
12
- experimental: {
13
- turbopackFileSystemCacheForBuild: true,
14
- turbopackRustReactCompiler: true
15
- },
16
-
17
- outputFileTracingIncludes: {
18
- "/**/*": ["veap.config.ts"],
19
- },
20
-
21
- typescript: {
22
- // !! WARN !!
23
- // Dangerously allow production builds to successfully complete even if
24
- // your project has type errors.
25
- // !! WARN !!
26
- ignoreBuildErrors: true,
27
- },
28
-
29
- images: {
30
- unoptimized: true,
31
- },
32
- };
33
-
34
- export default nextConfig;
1
+ import type { NextConfig } from "next";
2
+
3
+ const nextConfig: NextConfig = {
4
+ serverExternalPackages: ["knex", "pg", "better-sqlite3"],
5
+ // Output for standalone build in docker (disabled on Vercel to avoid build crash)
6
+ output: process.env.VERCEL ? undefined : "standalone",
7
+
8
+ transpilePackages: ["@veap/framework", "@veap/ui"],
9
+
10
+ reactCompiler: true,
11
+
12
+ experimental: {
13
+ turbopackFileSystemCacheForBuild: true,
14
+ turbopackRustReactCompiler: true
15
+ },
16
+
17
+ // @tailwindcss/turbopack support
18
+ turbopack: {
19
+ rules: {
20
+ "*.css": {
21
+ loaders: ["@tailwindcss/turbopack"],
22
+ as: "*.css",
23
+ },
24
+ },
25
+ },
26
+
27
+ outputFileTracingIncludes: {
28
+ "/**/*": ["veap.config.ts"],
29
+ },
30
+
31
+ typescript: {
32
+ // !! WARN !!
33
+ // Dangerously allow production builds to successfully complete even if
34
+ // your project has type errors.
35
+ // !! WARN !!
36
+ ignoreBuildErrors: true,
37
+ },
38
+
39
+ images: {
40
+ unoptimized: true,
41
+ },
42
+ };
43
+
44
+ export default nextConfig;
@@ -1,27 +1,27 @@
1
- import type { NextRequest } from "next/server";
2
- import { NextResponse } from "next/server";
3
-
4
- export function proxy(request: NextRequest) {
5
- const url = new URL(request.url);
6
- const requestHeaders = new Headers(request.headers);
7
- requestHeaders.set("x-pathname", url.pathname);
8
-
9
- return NextResponse.next({
10
- request: {
11
- headers: requestHeaders,
12
- },
13
- });
14
- }
15
-
16
- export const config = {
17
- matcher: [
18
- /*
19
- * Match all request paths except for the ones starting with:
20
- * - api (API routes)
21
- * - _next/static (static files)
22
- * - _next/image (image optimization files)
23
- * - favicon.ico (favicon file)
24
- */
25
- "/((?!api|_next/static|_next/image|favicon.ico).*)",
26
- ],
27
- };
1
+ import type { NextRequest } from "next/server";
2
+ import { NextResponse } from "next/server";
3
+
4
+ export function proxy(request: NextRequest) {
5
+ const url = new URL(request.url);
6
+ const requestHeaders = new Headers(request.headers);
7
+ requestHeaders.set("x-pathname", url.pathname);
8
+
9
+ return NextResponse.next({
10
+ request: {
11
+ headers: requestHeaders,
12
+ },
13
+ });
14
+ }
15
+
16
+ export const config = {
17
+ matcher: [
18
+ /*
19
+ * Match all request paths except for the ones starting with:
20
+ * - api (API routes)
21
+ * - _next/static (static files)
22
+ * - _next/image (image optimization files)
23
+ * - favicon.ico (favicon file)
24
+ */
25
+ "/((?!api|_next/static|_next/image|favicon.ico).*)",
26
+ ],
27
+ };