Edit

+license

Environment: config

Record<string, string | { expires: string; key: string }>


Global

The license key for larger teams.

If you're a small team, you don't need a license key — you can use Vike for free, just like any other open source tool. See Overview > Open Source Pricing.

Install

To install your license key, add it to +config.js:

// pages/+config.js
 
export default {
  license: {
    'foo.com': 'lOK9uiUuCP75lMzQ…', 
    'bar.com': { expires: '2026-12-31T00:00:00Z', key: 't2ZX4KY6kgmHSmj…' } 
  } 
}
// pages/+config.ts
 
import type { Config } from 'vike/types'
 
export default {
  license: { 
    'foo.com': 'lOK9uiUuCP75lMzQ…', 
    'bar.com': { expires: '2026-12-31T00:00:00Z', key: 't2ZX4KY6kgmHSmj…' }, 
  }, 
} satisfies Config

Your license key isn't a secret — it's safe to share publicly (for example, you can commit it to a public repository).

It's valid for all subdomains — a key for example.com also covers foo.example.com, bar.example.com, etc.

See also