Code Monkey home page Code Monkey logo

Comments (3)

busanTeddyBear avatar busanTeddyBear commented on June 29, 2024

My next.config.mjs file code is:

import createNextIntlPlugin from "next-intl/plugin";

const withNextIntl = createNextIntlPlugin();

/** @type {import("next").NextConfig} */
const nextConfig = {};

export default withNextIntl(nextConfig);

Related issues

  1. https://stackoverflow.com/questions/77783368/unable-to-bundle-next-config-js-for-use-in-cloud-functions-firebase-next-js

from firebase-tools.

leoortizz avatar leoortizz commented on June 29, 2024

Hey @busanTeddyBear, can you please share your package.json?

from firebase-tools.

busanTeddyBear avatar busanTeddyBear commented on June 29, 2024

@leoortizz

Yes, of course.

This is the /hosting/package.json file content:

{
    "name": "hosting",
    "version": "0.1.0",
    "private": true,
    "scripts": {
        "dev": "next dev",
        "build": "next build",
        "start": "next start",
        "lint": "next lint"
    },
    "dependencies": {
        "@heroicons/react": "^2.1.3",
        "@nextui-org/react": "^2.4.1",
        "framer-motion": "^11.2.10",
        "next": "^14.2.3",
        "next-intl": "^3.15.0",
        "next-themes": "^0.3.0",
        "react": "^18.3.1",
        "react-device-detect": "^2.2.3",
        "react-dom": "^18.3.1",
        "zustand": "^4.5.2"
    },
    "devDependencies": {
        "@types/node": "^20.14.2",
        "@types/react": "^18.3.3",
        "@types/react-dom": "^18.3.0",
        "autoprefixer": "^10.4.19",
        "eslint": "^8.57.0",
        "eslint-config-next": "^14.2.3",
        "eslint-plugin-perfectionist": "^2.10.0",
        "postcss": "^8.4.38",
        "prettier": "^3.3.2",
        "prettier-plugin-tailwindcss": "^0.6.2",
        "tailwindcss": "^3.4.4",
        "typescript": "^5.4.5"
    }
}

This is the /functions/package.json file content:

{
    "name": "functions",
    "description": "Cloud Functions for Firebase",
    "scripts": {
        "serve": "firebase emulators:start --only functions",
        "shell": "firebase functions:shell",
        "start": "npm run shell",
        "deploy": "firebase deploy --only functions",
        "logs": "firebase functions:log"
    },
    "engines": {
        "node": "20"
    },
    "main": "index.js",
    "dependencies": {
        "firebase-admin": "^12.1.1",
        "firebase-functions": "^5.0.1"
    },
    "devDependencies": {
        "firebase-functions-test": "^3.3.0"
    },
    "private": true
}

This is the /firebase.json file content:

{
    "firestore": {
        "rules": "firestore.rules",
        "indexes": "firestore.indexes.json"
    },

    "functions": [
        {
            "source": "functions",
            "codebase": "default",

            "ignore": [
                "node_modules",
                ".git",
                "firebase-debug.log",
                "firebase-debug.*.log"
            ]
        }
    ],

    "hosting": {
        "source": "hosting",
        "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],

        "rewrites": [
            {
                "source": "/apis/getChatCompletions",

                "function": {
                    "functionId": "getChatCompletions"
                }
            }
        ],

        "frameworksBackend": {
            "region": "asia-northeast3"
        }
    },

    "storage": {
        "rules": "storage.rules"
    },

    "emulators": {
        "functions": {
            "port": 5001
        },

        "firestore": {
            "port": 8080
        },

        "hosting": {
            "port": 5000
        },

        "storage": {
            "port": 9199
        },

        "ui": {
            "enabled": true
        },

        "singleProjectMode": true
    }
}

from firebase-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.