Browse Source

changing url for prod (temp fix for push)

master
Spencer Flagg 3 years ago
parent
commit
8996e22d73
6 changed files with 14 additions and 11 deletions
  1. +2
    -2
      login/index.js
  2. +4
    -4
      nuxt.config.js
  3. +1
    -1
      pages/dates.vue
  4. +1
    -1
      pages/flights.vue
  5. +5
    -2
      pages/go.vue
  6. +1
    -1
      plugins/env.js

+ 2
- 2
login/index.js View File

@ -32,7 +32,7 @@ dotenv.config({ path: './.env' });
const portier = new PortierClient({
//broker: process.env.PORTIER_URL,
redirectUri: 'https://flylocal.us' + "/login/verify",
redirectUri: 'https://iflylocal.com' + "/login/verify",
});
@ -248,7 +248,7 @@ app.post("/verify", formParser, (req, res) => {
portier.verify(req.body.id_token).then((email) => {
const redirectButton = (req.query.redirect && typeof req.query.redirect !== 'undefined') ? `<a class="btn btn--primary" href="${req.query.redirect}">back to your flight</a>` : `<a class="btn btn--primary" href="${'https://flylocal.us'}">back to the map</a>`;
const redirectButton = (req.query.redirect && typeof req.query.redirect !== 'undefined') ? `<a class="btn btn--primary" href="${req.query.redirect}">back to your flight</a>` : `<a class="btn btn--primary" href="${'https://iflylocal.com'}">back to the map</a>`;
// needed to string .cookie and .type together
res.cookie('email', email,

+ 4
- 4
nuxt.config.js View File

@ -27,16 +27,16 @@ export default {
{ name: 'format-detection', content: 'telephone=no' },
{ itemprop: 'name', content: 'Small Planes, Big Experiences' },
{ itemprop: 'description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
{ itemprop: 'image', content: 'https://flylocal.us' + '/screenshot.png' },
{ property: 'og:url', content: 'https://flylocal.us' },
{ itemprop: 'image', content: 'https://iflylocal.com' + '/screenshot.png' },
{ property: 'og:url', content: 'https://iflylocal.com' },
{ property: 'og:type', content: 'website' },
{ property: 'og:title', content: 'Small Planes, Big Experiences' },
{ property: 'og:description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
{ property: 'og:image', content: 'https://flylocal.us' + '/screenshot.png' },
{ property: 'og:image', content: 'https://iflylocal.com' + '/screenshot.png' },
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:title', content: 'Small Planes, Big Experiences' },
{ name: 'twitter:description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
{ name: 'twitter:image', content: 'https://flylocal.us' + '/screenshot.png' }
{ name: 'twitter:image', content: 'https://iflylocal.com' + '/screenshot.png' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }

+ 1
- 1
pages/dates.vue View File

@ -93,7 +93,7 @@ export default {
}
},
mounted () {
this.$segment.page('dates');
//this.$segment.page('dates');
this.$segment.track('dates__mount-page', {
origin: this.$route.params.o,
destination: this.$route.params.d

+ 1
- 1
pages/flights.vue View File

@ -371,7 +371,7 @@ export default {
this.schedules = [...data.records]
},
mounted () {
this.$segment.page('flights');
//this.$segment.page('flights');
this.$segment.track('flights__mount-page', {
origin: this.$route.params.o,
destination: this.$route.params.d,

+ 5
- 2
pages/go.vue View File

@ -238,8 +238,11 @@ export default {
},
mounted () {
this.$segment.page('go');
//this.$segment.page('go');
this.$segment.track('go__mount-page', {
origin: this.$route.params.o,
destination: this.$route.params.d
});
const emailCookie = this.$cookies.get('email')
if(emailCookie){
this.$segment.identify(emailCookie, {

+ 1
- 1
plugins/env.js View File

@ -1,5 +1,5 @@
export default ({ app }, inject) => {
// Inject $hello(msg) in Vue, context and store.
inject('BASE_URL', () => 'https://flylocal.us')
inject('BASE_URL', () => 'https://iflylocal.com')
inject('hello', msg => console.log(`Hello ${msg}!`))
}

Loading…
Cancel
Save