mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 04:43:35 +00:00
clean turbo config and cache github actions (#1805)
* refactor: turbo scripts refactor dev and build scripts remove cleanup * fix e2e script * cache playwright * cache pnpm * fix docker env in vite * fixup! refactor: turbo scripts * chore: add comment
This commit is contained in:
@@ -8,14 +8,17 @@ import svgrPlugin from 'vite-plugin-svgr';
|
||||
import { ONTIME_VERSION } from './src/ONTIME_VERSION';
|
||||
|
||||
const sentryAuthToken = process.env.SENTRY_AUTH_TOKEN;
|
||||
const isDev = process.env.NODE_ENV === 'local' || process.env.NODE_ENV === 'development';
|
||||
|
||||
export default defineConfig({
|
||||
base: './', // Ontime cloud: we use relative paths to allow them to reference a dynamic base set at runtime
|
||||
define: {
|
||||
// we pass along the NODE_ENV here in case it is a docker build
|
||||
'import.meta.env.IS_DOCKER': process.env.NODE_ENV === 'docker',
|
||||
},
|
||||
plugins: [
|
||||
react(),
|
||||
svgrPlugin(),
|
||||
!isDev &&
|
||||
sentryAuthToken &&
|
||||
sentryVitePlugin({
|
||||
org: 'get-ontime',
|
||||
project: 'ontime',
|
||||
|
||||
Reference in New Issue
Block a user