FTP-Deploy-Action
FTP-Deploy-Action copied to clipboard
Gives error with next.config.js
I get this error when deploying my next js project
the next.config.js
code
/** @type {import('next').NextConfig} */
// const withPlugin = require('next-compose-plugins');
// const optimizedImages = require('next-optimized-images');
const nextConfig = {
reactStrictMode: true,
}
module.exports = {
nextConfig,
images: {
domains: ['images.unsplash.com'],
loader: 'akamai',
path: '',
},
}
the main.yml
on: push
name: Publish to prod
jobs:
FTP-Deploy-Action:
name: FTP-Deploy-Action
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 2
- uses: actions/setup-node@v1
- run: npm install
- run: npm run build
- name: FTP-Deploy-Action
uses: SamKirkland/[email protected]
with:
ftp-server: sftp://something/mnt/Storage/www/summercamp
ftp-username: something
ftp-password: ${{ secrets.PASSWORD }}
local-dir: dist/
git-ftp-args: --insecure