Skip to content

Commit

Permalink
make PD base url relative
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokamin committed Feb 23, 2024
1 parent 34c5ea7 commit dab10da
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions protocol-designer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import postCssPresetEnv from 'postcss-preset-env'
import lostCss from 'lost'

export default defineConfig({
// this makes imports relative rather than absolute
base: '',
build: {
// Relative to the root
outDir: 'dist',
Expand Down Expand Up @@ -43,10 +45,14 @@ export default defineConfig({
},
resolve: {
alias: {
'@opentrons/components/styles': path.resolve('../components/src/index.module.css'),
'@opentrons/components/styles': path.resolve(
'../components/src/index.module.css'
),
'@opentrons/components': path.resolve('../components/src/index.ts'),
'@opentrons/shared-data': path.resolve('../shared-data/js/index.ts'),
'@opentrons/step-generation': path.resolve('../step-generation/src/index.ts'),
'@opentrons/step-generation': path.resolve(
'../step-generation/src/index.ts'
),
},
},
})

0 comments on commit dab10da

Please sign in to comment.