我在 static 文件夹下有一个 php 文件。 如何浏览 php 文件?
我尝试在配置中使用代理,但它不起作用
/pages
/static
test.php
如何浏览
localhost:port/[proxy]/test.php
谢谢
最佳答案
我想您需要一个网络服务器来处理您的 .php 文件。 /static 文件夹用于静态内容。
这是我在文档中找到的:
If you don't want to use Webpack assets from the assets directory, you can create and use the static directory (in your project root folder).
All included files will be automatically served by Nuxt and are accessible through your project root URL. (static/favicon.ico will be available at localhost:3000/favicon.ico)
关于vue.js - Nuxt如何浏览静态文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52872824/