Преглед изворни кода

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

Martijn пре 21 часа
родитељ
комит
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