Skip to content

Commit

Permalink
Merge pull request #229 from adyen-examples/nuxt3
Browse files Browse the repository at this point in the history
Upgrade to Nuxt 3.12.4 and Vue 3.2.47
  • Loading branch information
gcatanese authored Aug 27, 2024
2 parents b080b69 + 3bf1231 commit 01c1e15
Show file tree
Hide file tree
Showing 40 changed files with 7,602 additions and 14,060 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Node.js CI

on:
push:
pull_request:
branches: [ master ]
branches: [ main ]
pull_request_target:
branches: [ main ]

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ typings/

# nuxt.js build output
.nuxt
_nuxt
.output

# Nuxt generate
dist
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tasks:
# exposed ports
ports:
- port: 8080
- port: 3000
onOpen: open-preview
visibility: public

Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 6 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<Navbar />
<div class="main-container">
<NuxtPage />
</div>
</template>
2 changes: 1 addition & 1 deletion components/Navbar.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<header id="header">
<nuxt-link to="/">
<img src="~/assets/images/mystore-logo.svg" alt="Mystore logo" />
<img src="~/public/images/mystore-logo.svg" alt="Mystore logo" />
</nuxt-link>
</header>
</template>
18 changes: 0 additions & 18 deletions layouts/default.vue

This file was deleted.

62 changes: 0 additions & 62 deletions nuxt.config.js

This file was deleted.

24 changes: 24 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
title: 'Checkout Demo'
}
},
runtimeConfig: {
adyenApiKey: process.env.ADYEN_API_KEY,
adyenMerchantAccount: process.env.ADYEN_MERCHANT_ACCOUNT,
adyenClientKey: process.env.ADYEN_CLIENT_KEY,
adyenHmacKey: process.env.ADYEN_HMAC_KEY,
},
css: ['~/public/css/main.css', '@adyen/adyen-web/dist/adyen.css'],
components: [
{
path: '~/components',
pathPrefix: false,
},
],
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
telemetry: false
})
Loading

0 comments on commit 01c1e15

Please sign in to comment.