Skip to content

Commit

Permalink
fix sentry & debug make
Browse files Browse the repository at this point in the history
  • Loading branch information
Armaldio committed Jul 19, 2024
1 parent 2792f8a commit 5211415
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- name: Package application
run: pnpm run package

- name: list files
run: ls -lah out

# - name: Run tests
# uses: coactions/setup-xvfb@v1
# with:
Expand Down
7 changes: 5 additions & 2 deletions vite.main.config.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ConfigEnv, UserConfig } from 'vite';
import { defineConfig, mergeConfig } from 'vite';
import { defineConfig, loadEnv, mergeConfig } from 'vite';
import { getBuildConfig, getBuildDefine, external, pluginHotRestart } from './vite.base.config';
import tsconfigPaths from 'vite-tsconfig-paths'
import { viteStaticCopy } from 'vite-plugin-static-copy'
Expand All @@ -10,6 +10,9 @@ export default defineConfig((env) => {
const forgeEnv = env as ConfigEnv<'build'>;
const { forgeConfigSelf } = forgeEnv;
const define = getBuildDefine(forgeEnv);

const environment = loadEnv(env.mode, process.cwd(), '')

const config: UserConfig = {
build: {
sourcemap: true,
Expand All @@ -28,7 +31,7 @@ export default defineConfig((env) => {
sentryVitePlugin({
org: "armaldio",
project: "cyn",
authToken: process.env.SENTRY_AUTH_TOKEN,
authToken: environment.SENTRY_AUTH_TOKEN,
}),
viteStaticCopy({
targets: [
Expand Down
6 changes: 4 additions & 2 deletions vite.renderer.config.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ConfigEnv, UserConfig } from 'vite';
import { defineConfig } from 'vite';
import { defineConfig, loadEnv } from 'vite';
import { pluginExposeRenderer } from './vite.base.config';
import tsconfigPaths from 'vite-tsconfig-paths'
import vue from '@vitejs/plugin-vue'
Expand All @@ -14,6 +14,8 @@ export default defineConfig((env) => {
const { root, mode, forgeConfigSelf } = forgeEnv;
const name = forgeConfigSelf.name ?? '';

const environment = loadEnv(env.mode, process.cwd(), '')

return {
root,
mode,
Expand All @@ -30,7 +32,7 @@ export default defineConfig((env) => {
sentryVitePlugin({
org: "armaldio",
project: "cyn",
authToken: process.env.SENTRY_AUTH_TOKEN,
authToken: environment.SENTRY_AUTH_TOKEN,
}),
tsconfigPaths(),
vue(),
Expand Down

0 comments on commit 5211415

Please sign in to comment.