# next.config.ts · screen/portfolio.site

[View on GitCafe](https://git.cafe/screen/portfolio.site/blob/HEAD/next.config.ts)

Repository: [screen/portfolio.site](https://git.cafe/screen/portfolio.site)

Visibility: public

Requested revision: HEAD

Commit: 7847d31ba0b4b867c91744a7f877db24e11f9494

Blob: 1aad14a4789f3dd41b7269d3c0b018df76607ee8

Size: 395 bytes

[Immutable source](https://git.cafe/screen/portfolio.site/blob/7847d31ba0b4b867c91744a7f877db24e11f9494/next.config.ts?format=markdown)

```
import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
  output: 'export',
  images: { unoptimized: true },
  // The deployed site serves public/admin/index.html at /admin; the dev server needs a rewrite.
  ...(process.env.NODE_ENV === 'development' && {
    rewrites: async () => [{ source: '/admin', destination: '/admin/index.html' }],
  }),
};

export default nextConfig;

```
