--- title: Examples for the Web file-server executor description: This page contains examples for the Vite @nx/web:file-server executor. --- `project.json`: ```json5 "myapp": { "targets": { "serve": { "executor": "@nx/web:file-server", "options": { "buildTarget": "build", "port": 3000, }, }, "build": { "outputs": ["{workspaceRoot}/dist/myapp"], "command": "echo 'Generating index.html' && mkdir -p dist && echo '