Reference

Vista Config Reference

Reference for `vista.config.ts` including server settings, image config, and experimental typed API flags.

Updated: 2026-03-04

Minimal Config

ts

ts
const config = {};
export default config;

Typed API Config

ts

ts
const config = {
  experimental: {
    typedApi: {
      enabled: true,
      serialization: 'json', // 'json' | 'superjson'
      bodySizeLimitBytes: 1024 * 1024,
    },
  },
};

export default config;

Server Port

ts

ts
const config = {
  server: {
    port: 3000,
  },
};

export default config;

Image Domains

ts

ts
const config = {
  images: {
    domains: ['example.com', 'cdn.myapp.com'],
  },
};

export default config;