All checks were successful
Frontend CI / build (push) Successful in 1m29s
### Description There are several environment variables should be set: - Frontend - `PUBLIC_SENTRY_DSN` - `SENTRY_AUTH_TOKEN` - Backend - `SENTRY_DSN` If the dsn isn't set, errors won't be sent to Sentry. ### Package Changes _No response_ ### Screenshots  ### Reference Resolves #90 ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch Reviewed-on: #120 Co-authored-by: SquidSpirit <squid@squidspirit.com> Co-committed-by: SquidSpirit <squid@squidspirit.com>
32 lines
645 B
TypeScript
32 lines
645 B
TypeScript
import { sentrySvelteKit } from '@sentry/sveltekit';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
|
|
import { version } from './package.json';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sentrySvelteKit({
|
|
sourceMapsUploadOptions: {
|
|
org: 'squidspirit',
|
|
project: 'blog-beta-frontend'
|
|
}
|
|
}),
|
|
tailwindcss(),
|
|
sveltekit()
|
|
],
|
|
define: {
|
|
'App.__VERSION__': JSON.stringify(version)
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:8080',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
|
}
|
|
}
|
|
}
|
|
});
|