Skip to content

RamiroG8k/next-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

89eb6dc ยท Aug 26, 2024

History

10 Commits
Jan 20, 2024
Jul 2, 2024
May 16, 2024
Jan 21, 2024
Jan 25, 2024
Jul 2, 2024
Aug 26, 2024
Jan 21, 2024
Jul 2, 2024
Aug 26, 2024
May 16, 2024
May 16, 2024
Jan 21, 2024

Repository files navigation

NEXT-GO Next-Go

๐Ÿš€ A cutting-edge Next.js template powered by Bun and Zod for environment variable validation.

๐Ÿ“ Overview

Welcome to Next-Go! This project template is designed to kickstart your Next.js application with powerful features and best practices out of the box.

  • Environment Variable Validation: Utilizing zod for robust type-safe environment variable handling.
  • Bun Integration: Built-in support for the Bun runtime.
  • Optimized Configurations: Fine-tuned next.config.mjs for exportable builds and unoptimized images.
  • Modern Tooling: Equipped with TypeScript, TailwindCSS, ESLint, and more.

โš™๏ธ Environment Variable Validation

We leverage the power of zod to ensure your environment variables are correctly defined and validated. Check out our schema definitions below:

import { z } from 'zod';

export const serverSchema = z.object({
  NODE_ENV: z.enum(['development', 'production']).default('development')
});

export const clientSchema = z.object({
  NEXT_PUBLIC_BASE_URL: z.string().url()
});

...

// Usage example with type annotations
const baseUrl = clientEnv.NEXT_PUBLIC_BASE_URL;

About

Boilerplate ready to go with nextjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published