<?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: Goran Jakovljevic</title>
    <description>The latest articles on DEV Community by Goran Jakovljevic (@frenkix).</description>
    <link>https://dev.to/frenkix</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%2F28429%2F6218819c-3483-47a4-9702-dc0d21453fad.jpeg</url>
      <title>DEV Community: Goran Jakovljevic</title>
      <link>https://dev.to/frenkix</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/frenkix"/>
    <language>en</language>
    <item>
      <title>The right way to add apple touch icons in NextJS</title>
      <dc:creator>Goran Jakovljevic</dc:creator>
      <pubDate>Tue, 13 Dec 2022 11:33:37 +0000</pubDate>
      <link>https://dev.to/frenkix/the-right-way-to-add-apple-touch-icons-in-nextjs-4k0b</link>
      <guid>https://dev.to/frenkix/the-right-way-to-add-apple-touch-icons-in-nextjs-4k0b</guid>
      <description>&lt;p&gt;So, some tutorials suggest adding it like this in &lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-touch-icon.png" /&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;but, for some "unknown" reason, if you have root file in /pages/ thats using slug such as [slug].tsx, apple devices will run [slug].tsx when fetching apple-touch-icon linked like that.&lt;/p&gt;

&lt;p&gt;Solution was to just create 2 png files &lt;/p&gt;

&lt;p&gt;apple-touch-icon-precomposed.png&lt;br&gt;
apple-touch-icon.png&lt;/p&gt;

&lt;p&gt;and add them directly to public folder. No need to link it in &lt;/p&gt;

&lt;p&gt;Thats it.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>favicon</category>
    </item>
    <item>
      <title>Prisma ORM update explicit many to many relations</title>
      <dc:creator>Goran Jakovljevic</dc:creator>
      <pubDate>Mon, 27 Dec 2021 06:30:05 +0000</pubDate>
      <link>https://dev.to/frenkix/prisma-orm-update-explicit-many-to-many-relations-1o6f</link>
      <guid>https://dev.to/frenkix/prisma-orm-update-explicit-many-to-many-relations-1o6f</guid>
      <description>&lt;p&gt;I was struggling to find this in docs. So, when you have explicit many to many relationship, lets say you have post that has multiple tags. And you want to edit that post and pass up new tags or edit/remove existing ones. This is the way to do it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const response: jobs = await prisma.posts.update({
            data: {
                ...data,
                users: { connect: { id: session.user.id } },
                posts_tags: {
                    deleteMany: {},
                    create: tags.map((tag) =&amp;gt; ({
                        tags: { connect: { id: tag } },
                    })),
                },
            },
            where: {
                slug: postSlug,
            },
        });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So first you pass up deleteMany: {}, which will delete all connections between post and tags. Then you are assigning/connecting new ones. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>mysql</category>
    </item>
  </channel>
</rss>
