litestar-vite-plugin 0.23.0 → 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.
Files changed (2) hide show
  1. package/dist/js/index.js +1 -4
  2. 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
- const explicitServerOrigin = typeof userConfig.server?.origin === "string" && userConfig.server.origin.length > 0 ? userConfig.server.origin : void 0;
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 () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "litestar-vite-plugin",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "type": "module",
5
5
  "description": "Litestar plugin for Vite.",
6
6
  "keywords": [