# Serve static files

@ServerSettings lets you configure a list of static folders.

# Configuration

Configure your server:

import {Configuration} from "@tsed/common";
const rootDir = __dirname;

@Configuration({
   rootDir,
   statics: {
      "/": `${rootDir}/webapp`
   }
})
export class Server {

}
1
2
3
4
5
6
7
8
9
10
11
12

TIP

serveStatic attribute supports multiple directories