-
Notifications
You must be signed in to change notification settings - Fork 57
How to Serve Static Assets
Dimitrios Zorbas edited this page Mar 24, 2018
·
4 revisions
To configure Kitto to serve static assets you have to use:
# File: config/config.exs or config/prod.exs
config :kitto, server_assets?: true
When your dashboard application is under an umbrella app, see: https://github.com/kittoframework/kitto/wiki/Umbrella-Apps
By default static assets will be compiled under priv/static
(see: webpack.config.js), if you're not using distillery, you'll have to provide that path using the following config:
# File: config/config.exs or config/prod.exs
config :kitto, server_assets?: true,
assets_path: "priv/static" # Add this