docs: updated public directory explanation (#18464)

This commit is contained in:
Favour Felix Chinemerem 2023-02-15 17:23:17 +01:00 committed by GitHub
parent 6c5d8d6b2b
commit 76a4f4ecbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,13 @@ Nuxt and Nuxt Modules are now build-time-only.
If you are a module author, you can check out [more information about module compatibility](/docs/migration/module-authors) and [our module author guide](/docs/guide/going-further/modules).
::
## Directory Changes
The `static/` directory (for storing static assets) has been renamed to `public/`. You can either rename your `static` directory to `public`, or keep the name by setting `dir.public` in your `nuxt.config`.
::ReadMore{link="/docs/guide/directory-structure/public"}
::
## TypeScript
It will be much easier to migrate your application if you use Nuxt's TypeScript integration. This does not mean you need to write your application in TypeScript, just that Nuxt will provide automatic type hints for your editor.