netlify

Deploy Vue.js Okta Authentication app on Netlify

此生再无相见时 提交于 2020-01-25 06:44:23
问题 I recently built a Vue.js application with Okta authentication. I am attempting to deploy this application on Netlify. After setting up a new project in Netlify, I imported the Vue.js application into the Netlify project from GitHub. I reconfigured the router in the application so that redirect_uri in the Okta initializer reflects the new Netlify URL: import Auth from "@okta/okta-vue"; Vue.use(Auth, { issuer: "https://xxx-xxxxxx.okta.com/oauth2/default", client_id: "xxxxxxxxxxxxxxxxxxxx",

Deploy Vue.js Okta Authentication app on Netlify

邮差的信 提交于 2020-01-25 06:44:15
问题 I recently built a Vue.js application with Okta authentication. I am attempting to deploy this application on Netlify. After setting up a new project in Netlify, I imported the Vue.js application into the Netlify project from GitHub. I reconfigured the router in the application so that redirect_uri in the Okta initializer reflects the new Netlify URL: import Auth from "@okta/okta-vue"; Vue.use(Auth, { issuer: "https://xxx-xxxxxx.okta.com/oauth2/default", client_id: "xxxxxxxxxxxxxxxxxxxx",

How to deploy express.js server to Netlify

故事扮演 提交于 2020-01-25 06:40:37
问题 I am attempting to deploy a Vue.js, Node, Express, MongoDB (MEVN) stack application to Netlify. I successfully deployed the front end of the application to Netlify, and am now attempting to deploy the express server, based on the following serverless-http example: https://github.com/neverendingqs/netlify-express/blob/master/express/server.js I configured my server to include the serverless-http package: server.js const express = require('express'); const app = express(); const serverless =

Blank page after running build on create-react-app

让人想犯罪 __ 提交于 2020-01-23 07:47:21
问题 Trying to deploy create-react-app on netlify, however my build is blank page. I'm using .env file for loading firebase api key is that a problem for build? Even when I tried to open it locally on my computer its blank page and it outputs an error in console: "Loading failed for the with source “file:///event-app/static/js/main.108757a0.js”" package.json: https://gist.github.com/Verthon/f82371ad2bb636b2e95c5b7697aa0bb5 ➜ event-app git:(master) ✗ npm run build > event-app@0.1.0 build /home/jurr

How to use the container Hugo version with One Click Netlify CMS example

别等时光非礼了梦想. 提交于 2020-01-06 09:56:29
问题 In the Netlify CMS community chat, the question keeps coming up how to manage the Hugo version without a bin folder and executable. The one-click-hugo-cms example is a deploy to generate a Hugo static site and use Netlify CMS to be able to add posts for the site. The Issue : The site setup uses a bin folder to store the Hugo executable for simplicity, but the developer wants to use a different version of Hugo and keep it up to date without having to keep copying new executables to the Hugo

How to use the container Hugo version with One Click Netlify CMS example

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 09:54:31
问题 In the Netlify CMS community chat, the question keeps coming up how to manage the Hugo version without a bin folder and executable. The one-click-hugo-cms example is a deploy to generate a Hugo static site and use Netlify CMS to be able to add posts for the site. The Issue : The site setup uses a bin folder to store the Hugo executable for simplicity, but the developer wants to use a different version of Hugo and keep it up to date without having to keep copying new executables to the Hugo

Angular routing not working on Netlify on page refresh

三世轮回 提交于 2019-12-30 09:46:13
问题 I deploy to netlify using ng build --prod , and the website works. But when I go to it, it automatically changes the link by adding /home onto the end. It still works, but then if I refresh the page or click any links to other pages, it doesn't work anymore. The reason the "/home" is added on is because I have a RouterModule set up that has home as it's initial path. Here is the code I have in my "app.module.ts" that sets up routes: NgbModule.forRoot(), RouterModule.forRoot([ { path: '',

Rewrites with Netlify

陌路散爱 提交于 2019-12-24 16:43:28
问题 I am trying to set up some rewrites in Netlify. Here's what I have in my _redirects file: /search xyz=:abc https://example.com/search?xyz=:abc 200 /:abc https://example.com/search?xyz=:abc 200 The first line works as expected, the second line is not working. However, if I change HTTP status code for the second line to 301, it works. Why is that so? I really need to rewrite like the rule in second line. Is there any other modification I can do to make it work? 回答1: I got a response from

Rewrites with Netlify

情到浓时终转凉″ 提交于 2019-12-24 16:43:00
问题 I am trying to set up some rewrites in Netlify. Here's what I have in my _redirects file: /search xyz=:abc https://example.com/search?xyz=:abc 200 /:abc https://example.com/search?xyz=:abc 200 The first line works as expected, the second line is not working. However, if I change HTTP status code for the second line to 301, it works. Why is that so? I really need to rewrite like the rule in second line. Is there any other modification I can do to make it work? 回答1: I got a response from

using vue-head with prerender-spa-plugin is causing title and meta tags to be displayed twice on netlify

流过昼夜 提交于 2019-12-24 11:54:03
问题 This issue only happens when live on netlify ( despite their prerender option turned off ), not while being served locally. the live site shows : <title>about | anonplayer about | anonplayer</title> title and meta tags are set using the vue-head package like so head: { title: { inner: "about | anonplayer", separator: ' ', }, ... and this happens for all routes of my single page app and also to meta tags where there are two sets of the tags I intended to have. looks like this I used the