Skip to content

Commit e392b17

Browse files
authored
Merge pull request #18 from code0-tech/feat/#12
Auth pages and user service
2 parents 5cd6432 + 5103b72 commit e392b17

File tree

73 files changed

+4265
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+4265
-244
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ next-env.d.ts
4242

4343
# intellij
4444
.idea/
45+
46+
schema.graphql

.gitlab-ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
stages:
2-
- lint
32
- build
43

54
.node:
65
image: node:24.8.0
76
before_script:
87
- npm ci
98

10-
lint:
11-
extends:
12-
- .node
13-
stage: lint
14-
script:
15-
- npm run lint
16-
179
build:
1810
extends:
1911
- .node

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ bun dev
1616

1717
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1818

19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
19+
You can start editing the page by modifying `app/page.ts`. The page auto-updates as you edit the file.
2020

2121
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
2222

graphql-imports.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '*.graphql'

graphql.config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
schema: schema.graphql
2+
documents: '**/*.graphql'
3+
extensions:
4+
endpoints:
5+
Default GraphQL Endpoint:
6+
url: http://localhost:3001/graphql

next.config.ts

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,63 @@
1-
import type { NextConfig } from "next";
1+
import type {NextConfig} from "next";
22
import path from "node:path";
3+
34
const EDITION = process.env.EDITION ?? "ce";
45

6+
const cspHeader = `
7+
default-src 'self';
8+
script-src 'self' 'unsafe-eval' 'unsafe-inline';
9+
style-src 'self' 'unsafe-inline';
10+
img-src 'self' blob: data:;
11+
font-src 'self';
12+
object-src 'none';
13+
base-uri 'self';
14+
form-action 'self';
15+
frame-ancestors 'none';
16+
`
17+
518
const nextConfig: NextConfig = {
19+
async headers() {
20+
return [
21+
{
22+
source: '/(.*)',
23+
headers: [
24+
{
25+
key: 'Content-Security-Policy',
26+
value: cspHeader.replace(/\n/g, ''),
27+
},
28+
{
29+
key: "X-Frame-Options",
30+
value: "DENY"
31+
}
32+
],
33+
},
34+
]
35+
},
36+
env: {
37+
NEXT_PUBLIC_edition: EDITION,
38+
NEXT_PUBLIC_pictorVersion: "11"
39+
},
40+
reactStrictMode: true,
41+
reactCompiler: true,
642
turbopack: {
743
resolveAlias: {
844
"@edition": path.resolve(__dirname, `src/packages/${EDITION}/src`),
945
"@core": path.resolve(__dirname, "src/packages/core/src"),
1046
},
47+
rules: {
48+
"*.graphql": {
49+
loaders: ["graphql-tag/loader"],
50+
as: "*.js"
51+
},
52+
},
53+
},
54+
rewrites: () => {
55+
return [
56+
{
57+
source: '/graphql',
58+
destination: 'http://localhost:3001/graphql' // Proxy to Backend
59+
}
60+
];
1161
}
1262
};
1363

0 commit comments

Comments
 (0)