FTP-Deploy-Action icon indicating copy to clipboard operation
FTP-Deploy-Action copied to clipboard

Gives error with next.config.js

Open sc0rp10n-py opened this issue 2 years ago • 0 comments

I get this error when deploying my next js project image

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

sc0rp10n-py avatar Jul 23 '22 18:07 sc0rp10n-py