Skip to content

Commit f1222a6

Browse files
authored
Merge pull request #19 from Check-Data-Out/dev
[25.02.28] 릴리즈 - Dev
2 parents 5abfe69 + 60920e6 commit f1222a6

File tree

26 files changed

+218
-108
lines changed

26 files changed

+218
-108
lines changed

.env.sample

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
NEXT_PUBLIC_BASE_URL=<'server url here'>
44
NEXT_PUBLIC_VELOG_URL=https://velog.io
55
NEXT_PUBLIC_ABORT_MS=<'abort time(ms) for fetch here'>
6-
SENTRY_AUTH_TOKEN=<'sentry auth token here'>
6+
NEXT_PUBLIC_SENTRY_AUTH_TOKEN=<'sentry auth token here'>
77
NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY=<'channelTalk plugin key here'>
8+
NEXT_PUBLIC_GA_ID=<'Google Analytics ID here'>
89
NEXT_PUBLIC_EVENT_LOG=<'Whether to send an event log here (true | false)'>
9-
SENTRY_DSN=<'sentry dsn here'>
10+
NEXT_PUBLIC_SENTRY_DSN=<'sentry dsn here'>

.github/workflows/docker-publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ jobs:
3030
echo "NEXT_PUBLIC_VELOG_URL=${{ secrets.NEXT_PUBLIC_VELOG_URL }}" >> .env
3131
echo "NEXT_PUBLIC_ABORT_MS=${{ secrets.NEXT_PUBLIC_ABORT_MS }}" >> .env
3232
echo "NEXT_PUBLIC_EVENT_LOG=${{ secrets.NEXT_PUBLIC_EVENT_LOG }}" >> .env
33-
echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> .env
33+
echo "NEXT_PUBLIC_SENTRY_AUTH_TOKEN=${{ secrets.NEXT_PUBLIC_SENTRY_AUTH_TOKEN }}" >> .env
3434
echo "NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY=${{ secrets.NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY }}" >> .env
35-
echo "SENTRY_DSN=${{ secrets.SENTRY_DSN }}" >> .env
35+
echo "NEXT_PUBLIC_GA_ID=${{ secrets.NEXT_PUBLIC_GA_ID }}" >> .env
36+
echo "NEXT_PUBLIC_SENTRY_DSN=${{ secrets.NEXT_PUBLIC_SENTRY_DSN }}" >> .env
3637
cp .env .env.production
3738
3839
- name: Build Next.js application

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default [
4444
'@typescript-eslint/promise-function-async': 'error',
4545
'@typescript-eslint/consistent-type-assertions': 'error',
4646
'@typescript-eslint/naming-convention': 'off',
47-
'no-restricted-imports': ['error', { patterns: ['..*'] }],
47+
'no-restricted-imports': ['warn', { patterns: ['..*'] }],
4848
},
4949
languageOptions: {
5050
parserOptions: { project: true, tsconfigRootDir: import.meta.dirname },

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"dependencies": {
1616
"@channel.io/channel-web-sdk-loader": "^2.0.0",
17+
"@next/third-parties": "^15.1.7",
1718
"@sentry/nextjs": "^8.47.0",
1819
"@tanstack/react-query": "^5.61.3",
1920
"@tanstack/react-query-devtools": "^5.62.11",

pnpm-lock.yaml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/opengraph-image.png

99.7 KB
Loading

sentry.client.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
44

55
import * as Sentry from '@sentry/nextjs';
6+
import { env } from '@/constants';
67

78
Sentry.init({
8-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
9+
dsn: env.SENTRY_DSN,
910

1011
// Add optional integrations for additional features
1112
integrations: [
1213
Sentry.replayIntegration({ maskAllText: false, blockAllMedia: false }),
1314
],
1415

1516
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
16-
tracesSampleRate: process.env.NODE_ENV === 'production' ? 0.1 : 1,
17+
tracesSampleRate: env.NODE_ENV === 'production' ? 0.1 : 1,
1718

1819
// Define how likely Replay events are sampled.
1920
// This sets the sample rate to be 10%. You may want this to be 100% while

sentry.edge.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
55

66
import * as Sentry from '@sentry/nextjs';
7+
import { env } from '@/constants';
78

89
Sentry.init({
9-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
10+
dsn: env.SENTRY_DSN,
1011

1112
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
12-
tracesSampleRate: process.env.NODE_ENV === 'production' ? 0.05 : 1,
13+
tracesSampleRate: env.NODE_ENV === 'production' ? 0.05 : 1,
1314

1415
// Setting this option to true will print useful information to the console while you're setting up Sentry.
1516
debug: false,

sentry.server.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
44

55
import * as Sentry from '@sentry/nextjs';
6+
import { env } from '@/constants';
67

78
Sentry.init({
8-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
9+
dsn: env.SENTRY_DSN,
910

1011
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
11-
tracesSampleRate: process.env.NODE_ENV === 'production' ? 0.1 : 1,
12+
tracesSampleRate: env.NODE_ENV === 'production' ? 0.1 : 1,
1213

1314
// Setting this option to true will print useful information to the console while you're setting up Sentry.
1415
debug: false,

src/__mock__/handlers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { http } from 'msw';
2-
import { PATHS } from '@/constants';
2+
import { env, PATHS } from '@/constants';
33
import { LoginVo } from '@/types';
44
import { BaseError, BaseSuccess } from './responses';
55

6-
const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL + '/api';
6+
const BASE_URL = env.BASE_URL + '/api';
77

88
const login = http.post(`${BASE_URL}${PATHS.LOGIN}`, async ({ request }) => {
99
const { accessToken, refreshToken } = (await request.json()) as LoginVo;

0 commit comments

Comments
 (0)