Skip to content

Commit

Permalink
Add config file types to Project Structure page (#8953)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
  • Loading branch information
br3ndonland and sarah11918 authored Jul 30, 2024
1 parent 1642cb0 commit b3831c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/docs/en/basics/project-structure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ For help creating a new `package.json` file for your project, check out the [man

This file is generated in every starter template and includes configuration options for your Astro project. Here you can specify integrations to use, build options, server options, and more.

Astro supports several file formats for its JavaScript configuration file: `astro.config.js`, `astro.config.mjs`, `astro.config.cjs` and `astro.config.ts`. We recommend using `.mjs` in most cases or `.ts` if you want to write TypeScript in your config file.

TypeScript config file loading is handled using [`tsm`](https://github.com/lukeed/tsm) and will respect your project's `tsconfig` options.

See the [Configuring Astro Guide](/en/guides/configuring-astro/) for details on setting configurations.

### `tsconfig.json`
Expand Down

0 comments on commit b3831c4

Please sign in to comment.