GithubHelp home page GithubHelp logo

warriorbrian / nuxt-blog Goto Github PK

View Code? Open in Web Editor NEW
313.0 15.0 72.0 16.66 MB

基于Nuxt.js服务器渲染(SSR)搭建的个人博客系统

Home Page: http://www.brianlee.cn

License: MIT License

HTML 0.14% JavaScript 17.17% CSS 0.02% Vue 46.16% Less 3.05% Dockerfile 0.15% Shell 0.83% TypeScript 32.48%
vue nuxt nodejs ssr axios less es6 typeorm mysql nestjs

nuxt-blog's People

Contributors

brianlee0223 avatar warriorbrian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nuxt-blog's Issues

backpack dev的时候报错了,不支持webpack4吗,webpack版本是4.20

backpack dev

Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions. In E:\dir\nuxt-blog\nuxt\node_modules\backpack-core\babel.js at createDescriptor (E:\dir\nuxt-blog\nuxt\node_modules\@babel\core\lib\config\config-descriptors.js:178:11)

另外题外问个问题,为什么我自己建的demo,asyncData获取数据在组件渲染之后执行,数据没有注入到html里面
<div id="nuxt-loading" aria-live="polite" role="status"> <div>Loading...</div> </div>

请教下关于nuxt部署的一些问题

nuxt和koa都是用在同一个端口3000,部署后,会出现接口找不到或者跨域的问题,请问Nginx上要怎么配置吗?

比如项目路径是//服务端ip/pro/
没有做后端的时候页面是可以正常访问的。

做了后端之后,接口地址是服务端ip/api/ 但是总404.

我感觉应该是我nginx配置的问题:
部分Nginx配置如下:

# 项目配置
location /pro/ {
  proxy_pass http://127.0.0.1:3000;
 # 省略其他
}
# 接口的原来是没配的,发现没作用后配的,可实际也没啥作用= =
location /api/ {
 proxy_pass http://127.0.0.1:3000/api/;
}

还望指教 谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.