Переглянути джерело

fix(create): Set api url to `auto` for newly created projects (#4102)

Martijn 18 годин тому
батько
коміт
82c165c288
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      packages/create/templates/vite.config.hbs

+ 1 - 1
packages/create/templates/vite.config.hbs

@@ -16,7 +16,7 @@ export default defineConfig({
             // and custom fields that are configured.
             vendureConfigPath: pathToFileURL('./src/vendure-config.ts'),
             // Points to the location of your Vendure server.
-            api: { host: 'http://localhost', port: {{ port }} },
+            api: { host: 'auto', port: 'auto' },
             // When you start the Vite server, your Admin API schema will
             // be introspected and the types will be generated in this location.
             // These types can be used in your dashboard extensions to provide