Use the Bun environment.
This commit is contained in:
parent
727d251971
commit
a83b2c3045
@ -15,7 +15,7 @@ async function main() {
|
|||||||
...config,
|
...config,
|
||||||
verbose: true,
|
verbose: true,
|
||||||
define: {
|
define: {
|
||||||
'process.env.APP_URL': process.env.APP_URL,
|
'Bun.env.APP_URL': Bun.env.APP_URL,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
export function createWebSocket() {
|
export function createWebSocket() {
|
||||||
let appUrl = process.env.APP_URL;
|
let appUrl = Bun.env.APP_URL;
|
||||||
appUrl = `//${appUrl}/chat-service`;
|
appUrl = `//${appUrl}/chat-service`;
|
||||||
console.log(appUrl);
|
|
||||||
return new WebSocket(appUrl);
|
return new WebSocket(appUrl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user