deep-foundation / sdk

https://deep-foundation.github.io/sdk/
The Unlicense
12 stars 10 forks source link

`/// <reference types="next/navigation-types/compat/navigation" />` is deleted on every GitPod startup #7

Closed Konard closed 5 months ago

Konard commented 1 year ago

IMG_1519

This line is deleted from this file at every GitPod startup https://github.com/deep-foundation/sdk/blob/680ef41f3e108b3f4f0d8fa682f520e51567c260/next-env.d.ts#L3

Do we really need this line? What does it do?

How can be prevent changes to repository state without programmer intervention?

Konard commented 5 months ago

https://stackoverflow.com/a/75966612/710069 https://github.com/vercel/next.js/blob/v13.4.4/docs/basic-features/typescript.md#existing-projects

A file named next-env.d.ts will be created at the root of your project. This file ensures Next.js types are picked up by the TypeScript compiler. You should not remove it or edit it as it can change at any time. This file should not be committed and should be ignored by version control (e.g. inside your .gitignore file).

git rm --cached next-env.d.ts