litestar-vite-plugin 0.23.1 → 0.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/index.js +1 -4
- package/package.json +1 -1
package/dist/js/index.js
CHANGED
|
@@ -243,10 +243,7 @@ function resolveLitestarPlugin(pluginConfig) {
|
|
|
243
243
|
const address = server.httpServer?.address();
|
|
244
244
|
const isAddressInfo = (x) => typeof x === "object";
|
|
245
245
|
if (isAddressInfo(address)) {
|
|
246
|
-
|
|
247
|
-
const configuredServerOrigin = typeof server.config.server.origin === "string" && server.config.server.origin.length > 0 && server.config.server.origin !== "__litestar_vite_placeholder__" ? server.config.server.origin : void 0;
|
|
248
|
-
const hotfileOrigin = configuredServerOrigin ?? explicitServerOrigin;
|
|
249
|
-
viteDevServerUrl = hotfileOrigin ? hotfileOrigin : resolveDevServerUrl(address, server.config, userConfig);
|
|
246
|
+
viteDevServerUrl = resolveDevServerUrl(address, server.config, userConfig);
|
|
250
247
|
fs.mkdirSync(path.dirname(pluginConfig.hotFile), { recursive: true });
|
|
251
248
|
fs.writeFileSync(pluginConfig.hotFile, viteDevServerUrl);
|
|
252
249
|
setTimeout(async () => {
|