tethys.backend/config/static.ts

17 lines
415 B
TypeScript
Raw Permalink Normal View History

2024-03-14 19:25:27 +00:00
import { defineConfig } from '@adonisjs/static'
2023-03-03 15:54:28 +00:00
/**
2024-03-14 19:25:27 +00:00
* Configuration options to tweak the static files middleware.
* The complete set of options are documented on the
* official documentation website.
2023-03-03 15:54:28 +00:00
*
2024-03-14 19:25:27 +00:00
* https://docs.adonisjs.com/guides/static-assets
2023-03-03 15:54:28 +00:00
*/
2024-03-14 19:25:27 +00:00
const staticServerConfig = defineConfig({
enabled: true,
etag: true,
lastModified: true,
dotFiles: 'ignore',
})
export default staticServerConfig