utquidem
Version:
The meta-framework suite designed from scratch for frontend-focused modern web development.
23 lines (12 loc) • 644 B
Markdown
title: config/public/
sidebar_position: 3
应用工程方案静态资源文件。
`public/` 目录中可以放置任意格式的静态资源文件,文件会被 Serve 在 Web 应用域名下。
## 说明
被 Serve 的文件路由基于目录结构的约定,其中,`public/` 为根目录,对应 Web 应用根域名。
例如 `config/public/sdk/index.js` 文件,在部署后将会被 Serve 在 `${domain}/sdk/index.js` 下。
## 场景
例如 `robots.txt`,`auth.xml` 等第三方系统需要的认证文件。
或者是给其他业务方(要求路由不变)的 SDK,也可以是无需入口的 HTML 文件等。