mirror of
https://github.com/plausible/analytics.git
synced 2024-11-26 00:24:44 +03:00
cac4ad20c9
* Stop typescript command clearing previous server start output in dev * Allow auth site access plug to specify that domain is found in request body at some key * Fix init order * Make domain retrieval part of the role pipeline * Add tests * Refactor how is_binary is applied in get_domain/2 * Make plug tests rely on dedicated test routes for more stability * Consistently treat empty `allowed_roles` list as permitting all roles * Fix async test param, add extra case for init * Make `DocsQueryTest` async again * Improve a bit and document plug configuration * Make docs more legible when viewed from source directly --------- Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
30 lines
809 B
Elixir
30 lines
809 B
Elixir
import Config
|
|
|
|
config :plausible, PlausibleWeb.Endpoint,
|
|
server: true,
|
|
debug_errors: true,
|
|
code_reloader: true,
|
|
check_origin: false,
|
|
watchers: [
|
|
esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]},
|
|
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]},
|
|
npm: ["--prefix", "assets", "run", "typecheck", "--", "--watch", "--preserveWatchOutput"],
|
|
npm: [
|
|
"run",
|
|
"deploy",
|
|
cd: Path.expand("../tracker", __DIR__)
|
|
]
|
|
],
|
|
live_reload: [
|
|
dirs: [
|
|
"extra"
|
|
],
|
|
patterns: [
|
|
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
|
|
~r"lib/plausible_web/(controllers|live|components|templates|views|plugs)/.*(ex|heex)$"
|
|
]
|
|
]
|
|
|
|
config :phoenix, :stacktrace_depth, 20
|
|
config :phoenix, :plug_init_mode, :runtime
|