<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mateja Petrovic</title>
    <description>The latest articles on DEV Community by Mateja Petrovic (@matejap).</description>
    <link>https://dev.to/matejap</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1115249%2F8ec7606e-3a6d-40ee-8d24-6b2434a3c3dd.png</url>
      <title>DEV Community: Mateja Petrovic</title>
      <link>https://dev.to/matejap</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/matejap"/>
    <language>en</language>
    <item>
      <title>Deployment of Next.js Flask app</title>
      <dc:creator>Mateja Petrovic</dc:creator>
      <pubDate>Fri, 07 Jul 2023 12:54:22 +0000</pubDate>
      <link>https://dev.to/matejap/deployment-of-nextjs-flask-app-2bch</link>
      <guid>https://dev.to/matejap/deployment-of-nextjs-flask-app-2bch</guid>
      <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;For the first time I am trying to deploy nextjs app with flask as backend.&lt;/p&gt;

&lt;p&gt;I used flask in my pages/api directory.&lt;/p&gt;

&lt;p&gt;If I run "npm run build" It will just be running "info Creating an optimized production build" for a while and nothing happens.&lt;/p&gt;

&lt;p&gt;The script code in pacakge.json:&lt;br&gt;
&lt;code&gt;"scripts": {&lt;br&gt;
    "flask-dev": "python -m flask --app pages/api/index run -p 8080 --reload",&lt;br&gt;
    "next-dev": "next dev",&lt;br&gt;
    "dev": "concurrently \"pnpm run next-dev\" \"pnpm run flask-dev\"",&lt;br&gt;
    "build": "next build"&lt;br&gt;
  },&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I am not sure if python will be running if I just build next js app, but since I havent deployed any app like this I appreciate any anwer and help.&lt;/p&gt;

&lt;p&gt;My question is:&lt;br&gt;
Will python be running on my hosted web site if I just persist and wait for the npm build to be finished?&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
