next-sitemap.cjs 307 B

12345678910
  1. #!/usr/bin/env node
  2. /* eslint-disable @typescript-eslint/no-var-requires */
  3. const envLoader = require('@next/env')
  4. const { CLI } = require('../dist/cjs/cli.js')
  5. // Load environment variables
  6. envLoader.loadEnvConfig(process.cwd(), process.env.NODE_ENV === 'development')
  7. // Execute CLI
  8. new CLI().execute()