Kaynağa Gözat

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

Martijn 21 saat önce
ebeveyn
işleme
82c165c288
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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