diff benchmark/bun-http-framework-benchmark/dev/adonis/config/static.ts @ 183:a8976a008a9d

[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 21:19:08 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmark/bun-http-framework-benchmark/dev/adonis/config/static.ts	Fri Jan 23 21:19:08 2026 -0800
@@ -0,0 +1,89 @@
+/**
+ * Config source: https://git.io/Jfefl
+ *
+ * Feel free to let us know via PR, if you find something broken in this config
+ * file.
+ */
+
+import { AssetsConfig } from '@ioc:Adonis/Core/Static'
+
+const staticConfig: AssetsConfig = {
+  /*
+  |--------------------------------------------------------------------------
+  | Enabled
+  |--------------------------------------------------------------------------
+  |
+  | A boolean to enable or disable serving static files. The static files
+  | are served from the `public` directory inside the application root.
+  | However, you can override the default path inside `.adonisrc.json`
+  | file.
+  |
+  |
+  */
+  enabled: true,
+
+  /*
+  |--------------------------------------------------------------------------
+  | Handling Dot Files
+  |--------------------------------------------------------------------------
+  |
+  | Decide how you want the static assets server to handle the `dotfiles`.
+  | By default, we ignore them as if they don't exists. However, you
+  | can choose between one of the following options.
+  |
+  | - ignore: Behave as if the file doesn't exists. Results in 404.
+  | - deny: Deny access to the file. Results in 403.
+  | - allow: Serve the file contents
+  |
+  */
+  dotFiles: 'ignore',
+
+  /*
+  |--------------------------------------------------------------------------
+  | Generating Etag
+  |--------------------------------------------------------------------------
+  |
+  | Handle whether or not to generate etags for the files. Etag allows browser
+  | to utilize the cache when file hasn't been changed.
+  |
+  */
+  etag: true,
+
+  /*
+  |--------------------------------------------------------------------------
+  | Set Last Modified
+  |--------------------------------------------------------------------------
+  |
+  | Whether or not to set the `Last-Modified` header in the response. Uses
+  | the file system's last modified value.
+  |
+  */
+  lastModified: true,
+
+  /*
+  |--------------------------------------------------------------------------
+  | Max age
+  |--------------------------------------------------------------------------
+  |
+  | Set the value for the max-age directive. Set a higher value in production
+  | if you fingerprint your assets.
+  |
+  | Learn more: https://docs.adonisjs.com/guides/deployment#serving-static-assets
+  |
+  */
+  maxAge: 0,
+
+  /*
+  |--------------------------------------------------------------------------
+  | Immutable
+  |--------------------------------------------------------------------------
+  |
+  | Set the immutable directive. Set it to `true` if the assets are generated
+  | with a fingerprint. In others words the file name changes when the file
+  | contents change.
+  |
+  */
+  immutable: false,
+}
+
+export default staticConfig