Просмотр исходного кода

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

Martijn 1 день назад
Родитель
Сommit
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