Skip to content

Commit

Permalink
Updates vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
a-poor committed Jan 4, 2025
1 parent 86b05bb commit 8e1520c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ import Markdoc from '@markdoc/markdoc';
import readingTime from 'reading-time';
import { sentryVitePlugin } from "@sentry/vite-plugin";


const SENTRY_AUTH_TOKEN = process.env.SENTRY_AUTH_TOKEN;
if (!SENTRY_AUTH_TOKEN) {
console.error('SENTRY_AUTH_TOKEN environment variable is required');
}


function importBlogPostPlugin() {
const virtualModuleId = 'virtual:load-blog-posts';
const resolvedVirtualModuleId = '\0' + virtualModuleId;
Expand Down Expand Up @@ -109,7 +116,7 @@ export default defineConfig(({ isSsrBuild }) => ({

// Keep this at the end
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
authToken: SENTRY_AUTH_TOKEN,
org: "austinpoorcom",
project: "austinpoor-dot-com",
sourcemaps: {
Expand Down

0 comments on commit 8e1520c

Please sign in to comment.