File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import fs from 'fs'
4
4
import path from 'path'
5
5
import { logger } from './logging'
6
6
import { stringifyError } from '@sofie-automation/shared-lib/dist/lib/stringifyError'
7
+ import { Meteor } from 'meteor/meteor'
7
8
8
9
/** Returns absolute path to programs/server directory of your compiled application, without trailing slash. */
9
10
export function getAbsolutePath ( ) : string {
@@ -27,7 +28,10 @@ export function extractFunctionSignature(f: Function): string[] | undefined {
27
28
export type Translations = Record < string , string >
28
29
29
30
// The /public directory in a Meteor app
30
- export const public_dir = path . join ( process . cwd ( ) , '../web.browser/app' )
31
+ export const public_dir = Meteor . isProduction
32
+ ? path . join ( process . cwd ( ) , '../web.browser/app' )
33
+ : // In development, find the webui package and use its public directory
34
+ path . join ( process . cwd ( ) , '../../../../../../packages/webui/public' )
31
35
32
36
/**
33
37
* Get the i18next locale object for a given `languageCode`. If the translations file can not be found or it can't be
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ export default defineConfig({
59
59
'/api' : 'http://127.0.0.1:3000' ,
60
60
'/site.webmanifest' : 'http://127.0.0.1:3000' ,
61
61
'/meteor-runtime-config.js' : 'http://127.0.0.1:3000' ,
62
+ '/images/sofie-logo.svg' : 'http://127.0.0.1:3000' ,
62
63
'/websocket' : {
63
64
target : `ws://127.0.0.1:3000` ,
64
65
ws : true ,
You can’t perform that action at this time.
0 commit comments