Skip to content

feat: Use TypeScript Next.js config (next.config.ts) #2082

Open
@martin-eq

Description

@martin-eq

Is your feature request related to a problem? Please describe.

It would be great to use TS as much as possible in the project, right now we are using env.js file because we import it in next.config.js

Newer versions of Next.js seem to support ESM in next.config.ts file.

Describe the solution you'd like to see

I suggest migrating from next.config.js to next.config.ts and to be able to convert env.js to env.ts as well.

Describe alternate solutions

The alternative is to continue using JS files with TS definitions in comments, but I don't think this is the cleaner approach.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions